1 package org.kuali.ole.ingest.util;
2
3 import org.apache.log4j.Logger;
4 import org.junit.Test;
5
6
7
8
9
10
11
12
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 }