IIHelper { public static II IIFactoryCreateNull(String nullFlavor) { II ii = new II(); ii.getNullFlavor().add(Constants.NullFlavor_NotAvailable); return ii; }  static II IIFactoryCreateNull(String nullFlavor); static II IIFactoryCreateNull(); static II IIFactory(String root, String extension);  }
@SuppressWarnings("static-access") @Test public void testIIFactoryCreateNull() { String nullFlavor = "NA"; IIHelper II = new IIHelper(); II ii = new II(); ii = II.IIFactoryCreateNull(nullFlavor); assertEquals(ii.getNullFlavor().get(0),"NA"); }
@Test public void testIIFactoryCreateNullwithoutArg() { String nullFlavor = "NA"; IIHelper II = new IIHelper(); II ii = new II(); ii = II.IIFactoryCreateNull(); assertEquals(ii.getNullFlavor().get(0), "NA"); }