Posted By

Heart on 06/02/13


Tagged


Versions (?)

Basic JUnit Test


 / Published in: Java
 

기본 JUnit 테스트 골격

  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  

You need to login to post a comment.