Package kr.pe.okjsp.util

Source Code of kr.pe.okjsp.util.BannerHelperTest

/*
* Created on 2004. 10. 16.
*/
package kr.pe.okjsp.util;

import java.text.ParseException;

import junit.framework.TestCase;
import kr.pe.okjsp.util.BannerHelper;

/**
* @author kenu_at_okjsp.pe.kr
*/
public class BannerHelperTest extends TestCase {
  public void testIsValid() throws ParseException {
    BannerHelper bh = new BannerHelper();
    bh.setDuration("20041018", "20041020");

    assertFalse(bh.isValid("20041017"));

    assertTrue(bh.isValid("20041018"));
    assertTrue(bh.isValid("20041019"));
    assertTrue(bh.isValid("20041020"));

    assertFalse(bh.isValid("20041021"));
  }
}
TOP

Related Classes of kr.pe.okjsp.util.BannerHelperTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.