JsCombinerTagTest.java :  » Scripting » jscombiner » net » leegorous » tag » jsc » Java Open Source

Java Open Source » Scripting » jscombiner 
jscombiner » net » leegorous » tag » jsc » JsCombinerTagTest.java
/**
 * 
 */
package net.leegorous.tag.jsc;

import java.util.List;

import junit.framework.TestCase;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author leegorous
 * 
 */
public class JsCombinerTagTest extends TestCase {

  protected Log log = LogFactory.getLog(this.getClass());

  private JsCombinerTag tag;

  /*
   * (non-Javadoc)
   * 
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception {
    tag = new JsCombinerTag();
    super.setUp();
  }

  public void testNormalizePath() {
    List list = tag
        .normalizePath("\r\n\tab.c; \tee \n dd\r\n  ..\\oo\r\n  ");
    log.debug(list);
    assertEquals(4, list.size());

    list = tag.normalizePath("\r\n");
    assertEquals(0, list.size());

    list = tag.normalizePath(null);
    assertNull(list);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.