Add additional tests for model-view-presenter pattern

This commit is contained in:
Jeroen Meulemeester
2015-12-21 12:17:20 +01:00
parent 69c9374669
commit 6fe01e73b2
2 changed files with 42 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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());
}
}