Skip to content

Commit 6fe01e7

Browse files
committed
Add additional tests for model-view-presenter pattern
1 parent 69c9374 commit 6fe01e7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.iluwatar.model.view.presenter;
2+
3+
import org.junit.Test;
4+
5+
/**
6+
*
7+
* Application test
8+
*
9+
*/
10+
public class AppTest {
11+
12+
@Test
13+
public void test() {
14+
String[] args = {};
15+
App.main(args);
16+
}
17+
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.iluwatar.model.view.presenter;
2+
3+
import org.junit.Test;
4+
5+
import java.io.FileNotFoundException;
6+
import java.io.IOException;
7+
8+
import static org.junit.Assert.*;
9+
10+
/**
11+
* Date: 12/21/15 - 12:12 PM
12+
*
13+
* @author Jeroen Meulemeester
14+
*/
15+
public class FileLoaderTest {
16+
17+
@Test
18+
public void testLoadData() throws Exception {
19+
final FileLoader fileLoader = new FileLoader();
20+
fileLoader.setFileName("non-existing-file");
21+
assertNull(fileLoader.loadData());
22+
}
23+
24+
}

0 commit comments

Comments
 (0)