View Javadoc
1   package org.kuali.ole.ingest.util;
2   
3   import junit.framework.Assert;
4   import org.apache.log4j.Logger;
5   import org.junit.Test;
6   
7   /**
8    * Created with IntelliJ IDEA.
9    * User: ?
10   * Date: 11/6/12
11   * Time: 3:43 PM
12   * To change this template use File | Settings | File Templates.
13   */
14  public class ISSNUtil_UT {
15  
16      private static Logger logger = Logger.getLogger( ISSNUtil_UT.class );
17  
18      @Test
19      public void checkISSN() throws Exception {
20          ISSNUtil issn = new ISSNUtil("0378-5955");
21          int chekSum = issn.getCheckSum();
22          if(logger.isInfoEnabled()){
23              logger.info( "chekSum----------->" + chekSum );
24          }
25          Assert.assertEquals(5,chekSum);
26      }
27  }