View Javadoc
1   package org.kuali.ole.ingest.util;
2   
3   import org.apache.log4j.Logger;
4   import org.junit.Test;
5   
6   
7   /**
8    * Created with IntelliJ IDEA.
9    * User: ?
10   * Date: 11/8/12
11   * Time: 6:52 PM
12   * To change this template use File | Settings | File Templates.
13   */
14  
15  public class OCLCUtil_UT {
16  
17      private static Logger logger = Logger.getLogger( ISSNUtil_UT.class );
18  
19      @Test
20      public void testNormalization() throws Exception {
21          OCLCUtil oclcUtil = new OCLCUtil();
22          String oclc = "(OCoLC) ocm000000002";
23          String oclc1 = "(OCoLC)ocm07002373" ;
24          String oclc2 = "(OCoLC) ocm00123456 800630";
25          String normalizedOCLC = oclcUtil.normalizedOclc(oclc);
26          String normalizedOCLC1 = oclcUtil.normalizedOclc(oclc1);
27          String normalizedOCLC2 = oclcUtil.normalizedOclc(oclc2);
28          if(logger.isInfoEnabled()){
29              logger.info( "normalizedOCLC----------->" + normalizedOCLC );
30              logger.info( "normalizedOCLC1----------->" + normalizedOCLC1 );
31              logger.info( "normalizedOCLC2----------->" + normalizedOCLC2 );
32          }
33      }
34  }