view src/test/java/jp/ac/u_ryukyu/cr/ie/tatsuki/functionTest/IsActiveTest.java @ 41:037731e99d6e

fit JungleCore 144
author one
date Mon, 17 Nov 2014 18:47:10 +0900
parents b8d86bc46b51
children c036d36c33af
line wrap: on
line source

package jp.ac.u_ryukyu.cr.ie.tatsuki.functionTest;

import jp.ac.u_ryukyu.cr.ie.tatsuki.bbs.JuGrix;


import org.junit.Assert;
import org.junit.Test;

public class IsActiveTest {
    
    @Test
    public void TestIsActive(){

            JuGrix jugrix = new JuGrix(false); 
            String personId = "p:1";
            
            Assert.assertTrue(jugrix.isActive(personId));
            
            personId = "p:100";
            Assert.assertFalse(jugrix.isActive(personId));
            
            jugrix = new JuGrix(true); 
            personId = "p:1";
            Assert.assertTrue(jugrix.isActive(personId));
            
            personId = "p:100";
            Assert.assertFalse(jugrix.isActive(personId));
    }

}