Basic JUnit Test


/ Published in: Java
Save to your folder(s)

기본 JUnit 테스트 골격


Copy this code and paste it in your HTML
  1. import org.junit.Before;
  2. import org.junit.After;
  3. import org.junit.Assert;
  4. import org.junit.Test;
  5.  
  6. public class JUnitTest {
  7.  
  8. @Before
  9. public void setUp() throws Exception {
  10. }
  11.  
  12. @After
  13. public void tearDown() throws Exception {
  14. }
  15.  
  16. @Test
  17. public void testDoWork() {
  18. exception.expect(IllegalStateException.class);
  19. // Assert.assert* ���� 조건 체�
  20. }
  21.  
  22. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.