Search in sources :

Example 1 with MockJFileChooser

use of org.evosuite.runtime.mock.javax.swing.MockJFileChooser in project evosuite by EvoSuite.

the class MockJFileChooserTest method testGetCurrentDirectory.

@Test
public void testGetCurrentDirectory() {
    JFileChooser chooser = new MockJFileChooser();
    File dir = chooser.getCurrentDirectory();
    Assert.assertTrue(dir.exists());
    Assert.assertTrue(dir instanceof MockFile);
}
Also used : MockJFileChooser(org.evosuite.runtime.mock.javax.swing.MockJFileChooser) MockJFileChooser(org.evosuite.runtime.mock.javax.swing.MockJFileChooser) JFileChooser(javax.swing.JFileChooser) MockFile(org.evosuite.runtime.mock.java.io.MockFile) MockFile(org.evosuite.runtime.mock.java.io.MockFile) File(java.io.File) Test(org.junit.Test)

Aggregations

File (java.io.File)1 JFileChooser (javax.swing.JFileChooser)1 MockFile (org.evosuite.runtime.mock.java.io.MockFile)1 MockJFileChooser (org.evosuite.runtime.mock.javax.swing.MockJFileChooser)1 Test (org.junit.Test)1