turt2live

Untitled

Jan 22nd, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package com.turt2live.antishare;
  2.  
  3. import static org.junit.Assert.assertFalse;
  4. import static org.junit.Assert.assertNull;
  5. import static org.junit.Assert.assertTrue;
  6.  
  7. import org.junit.After;
  8. import org.junit.Before;
  9. import org.junit.Test;
  10.  
  11. import com.turt2live.antishare.util.ASUtils;
  12.  
  13. public class TestASUtils {
  14.  
  15.     @Before
  16.     public void setUp(){
  17.         // Runs before @Test
  18.     }
  19.  
  20.     @After
  21.     public void tearDown(){
  22.         // Runs after @Test
  23.     }
  24.  
  25.     @Test
  26.     public void testGetBoolean(){
  27.         assertTrue(ASUtils.getBoolean("true"));
  28.         assertFalse(ASUtils.getBoolean("false"));
  29.         assertNull(ASUtils.getBoolean("thisShouldBeNull"));
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment