Skip to content

Commit 2b3216b

Browse files
committed
Adding test resources
1 parent ed72eca commit 2b3216b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package modisefileupload.java.test;
2+
import static org.junit.Assert.*;
3+
4+
import org.junit.Test;
5+
import org.junit.runner.RunWith;
6+
import org.springframework.beans.factory.annotation.Autowired;
7+
import org.springframework.test.context.ContextConfiguration;
8+
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
9+
import org.springframework.test.context.web.AnnotationConfigWebContextLoader;
10+
import org.springframework.test.context.web.WebAppConfiguration;
11+
12+
import junit.framework.Assert;
13+
import modisefileupload.java.config.WebConfig;
14+
import modisefileupload.java.service.UserService;
15+
16+
@RunWith(SpringJUnit4ClassRunner.class)
17+
@WebAppConfiguration
18+
@ContextConfiguration(classes={WebConfig.class}, loader=AnnotationConfigWebContextLoader.class)
19+
public class FileUploadTest {
20+
21+
@Autowired
22+
private UserService userService;
23+
24+
@Test
25+
public void testSavingUser() {
26+
//Assert
27+
28+
fail("Not yet implemented");
29+
}
30+
31+
}

0 commit comments

Comments
 (0)