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   
9   
10  
11  
12  
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  }