View Javadoc
1   package org.kuali.ole.ncip.service;
2   
3   import org.extensiblecatalog.ncip.v2.service.LookupUserResponseData;
4   import org.junit.Test;
5   import org.kuali.ole.deliver.util.XMLFormatterUtil;
6   import org.kuali.ole.ncip.util.OLENCIPUtil;
7   
8   import static org.junit.Assert.*;
9   
10  /**
11   * Created by pvsubrah on 8/10/15.
12   */
13  public class NCIPLookupUserResponseBuilderTest {
14  
15      @Test
16      public void addErrorResponse() throws Exception {
17          LookupUserResponseData lookupUserResponseData = new LookupUserResponseData();
18          OLENCIPUtil olencipUtil = new OLENCIPUtil();
19  
20          olencipUtil.processProblems(lookupUserResponseData, "problem", "patronId", "InValid barcode");
21  
22          assertNotNull(lookupUserResponseData);
23  
24          System.out.println(lookupUserResponseData);
25  
26  
27      }
28  
29  }