Add additional tests for model-view-presenter pattern
This commit is contained in:
@ -0,0 +1,18 @@
|
|||||||
|
package com.iluwatar.model.view.presenter;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Application test
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class AppTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
String[] args = {};
|
||||||
|
App.main(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.iluwatar.model.view.presenter;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Date: 12/21/15 - 12:12 PM
|
||||||
|
*
|
||||||
|
* @author Jeroen Meulemeester
|
||||||
|
*/
|
||||||
|
public class FileLoaderTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testLoadData() throws Exception {
|
||||||
|
final FileLoader fileLoader = new FileLoader();
|
||||||
|
fileLoader.setFileName("non-existing-file");
|
||||||
|
assertNull(fileLoader.loadData());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user