Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.turt2live.antishare;
- import static org.junit.Assert.assertFalse;
- import static org.junit.Assert.assertNull;
- import static org.junit.Assert.assertTrue;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
- import com.turt2live.antishare.util.ASUtils;
- public class TestASUtils {
- @Before
- public void setUp(){
- // Runs before @Test
- }
- @After
- public void tearDown(){
- // Runs after @Test
- }
- @Test
- public void testGetBoolean(){
- assertTrue(ASUtils.getBoolean("true"));
- assertFalse(ASUtils.getBoolean("false"));
- assertNull(ASUtils.getBoolean("thisShouldBeNull"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment