updated gitignore, Merge branch 'updateCientServer' of gitlab.ewi.tudelft.nl:cse1105/2018-2019/oopp-group-43/template

This commit is contained in:
Sem van der Hoeven
2019-02-27 09:51:09 +01:00
parent 3f333fa420
commit 40d1b04caf
17 changed files with 889 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import org.junit.Test;
public class ApplicationTest {
@Test
public void main() {
}
}

View File

@@ -0,0 +1,14 @@
import hello.Greeting;
import hello.GreetingController;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
public class GreetingControllerTest {
@Test
void nullTest() {
GreetingController controller = new GreetingController();
assertThat(controller).isNotNull();
}
}

View File

@@ -0,0 +1,15 @@
import hello.Greeting;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
public class GreetingTest {
@Test
void testGets() {
Greeting greeting = new Greeting(1, "hello");
long id = greeting.getId();
String content = greeting.getContent();
assertThat(id).isEqualTo(1);
assertThat(content).isEqualTo(content);
}
}