@Before
public void setUp() throws Exception {
- setUp(0);
+ setUp(0);
}
-
- public void setUp(int sbopt) throws Exception {
+
+ public void setUp( int sbopt ) throws Exception {
StringBuilder sb = new StringBuilder(maxSizeForXml);
addNamespace(sb);
addBusiness(sb);
- addCustomers(sb);
+ addCustomers(sb);
if ( sbopt == 0 ) {
- addCustomer(sb);
+ addCustomer(sb);
} else {
addCustomerNoSubscriberType(sb);
addCustomerSubscriberType(sb);
addEndOfXML(sb);
testXML = sb.toString();
init();
- }
+}
private void addNamespace(StringBuilder sb){
sb.append("<xml-bindings xmlns=\"http://www.eclipse.org/eclipselink/xsds/persistence/oxm\" package-name=\"inventory.aai.onap.org.v11\" xml-mapping-metadata-complete=\"true\">\n");
sb.append("</xml-properties>\n");
sb.append("</xml-element>\n");
sb.append("<xml-element java-attribute=\"serviceSubscriptions\" name=\"service-subscriptions\" type=\"inventory.aai.onap.org.v11.ServiceSubscriptions\" />\n");
-// sb.append("<xml-element java-attribute=\"relationshipList\" name=\"relationship-list\" type=\"inventory.aai.onap.org.v11.RelationshipList\" />\n");
sb.append("</java-attributes>\n");
sb.append("<xml-properties>\n");
sb.append("<xml-property name=\"description\" value=\"customer identifiers to provide linkage back to BSS information.\" />\n");
sb.append("<xml-property name=\"namespace\" value=\"business\" />\n");
sb.append("</xml-properties>\n");
sb.append("</java-type>\n");
- }
+ }
private void addCustomerSubscriberType(StringBuilder sb){
sb.append("<java-type name=\"Customer\">\n");
sb.append("<xml-property name=\"container\" value=\"customers\" />\n");
sb.append("</xml-properties>\n");
sb.append("</java-type>\n");
- }
+ }
private void addServiceSubscriptions(StringBuilder sb){
sb.append("<java-type name=\"ServiceSubscriptions\">\n");