forked from vilasvarghese/devops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloServletTest.java
More file actions
47 lines (35 loc) · 886 Bytes
/
Copy pathHelloServletTest.java
File metadata and controls
47 lines (35 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.hsbg.hello;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import org.junit.Before;
import org.junit.Test;
import org.junit.After;
import static org.junit.Assert.*;
public class HelloServletTest {
@Before
public void beforeEachTest() {
System.out.println("This is executed before each Test");
}
@After
public void afterEachTest() {
System.out.println("This is exceuted after each Test");
}
@Test
public void testHelloServlet() {
int result = 7;
assertEquals(7, result);
}
@Test
public void testHelloServlet1() {
int result = 5;
assertEquals(5, result);
}
}