mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-06 06:16:05 +00:00
All without Readme and pumlid
This commit is contained in:
1 parent
8530d01e10
commit
20062faae6
8 files changed
+147
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by Alexis on 01-May-17.
|
||||
*/
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Application test
|
||||
*/
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.instanceOf;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
/**
|
||||
* Created by Alexis on 02-May-17.
|
||||
*/
|
||||
public class GuardTest {
|
||||
|
||||
@Test
|
||||
public void testGuard() {
|
||||
Guard guard = new Guard();
|
||||
assertThat(guard, instanceOf(Permission.class));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Created by Alexis on 02-May-17.
|
||||
*/
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
|
||||
public class ThiefTest {
|
||||
@Test
|
||||
public void testGuard() {
|
||||
Thief thief = new Thief();
|
||||
assertFalse(thief instanceof Permission);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user