@Test public final void testAddPolicyId() { try { PolicyList.addPolicyId("Test"); assertTrue(PolicyList.getpolicyList().size() == 1); } catch (final Exception e) { fail("operation failed, e=" + e); } }
public static void addPolicyId(final String policyId) { if (!policyList.contains(policyId)) { policyList.add(policyId); } }
PolicyList { public static void addPolicyId(final String policyId) { if (!policyList.contains(policyId)) { policyList.add(policyId); } } }
PolicyList { public static void addPolicyId(final String policyId) { if (!policyList.contains(policyId)) { policyList.add(policyId); } }  }
PolicyList { public static void addPolicyId(final String policyId) { if (!policyList.contains(policyId)) { policyList.add(policyId); } }  static List<String> getpolicyList(); static void addPolicyId(final String policyId); static void clearPolicyList(); }
PolicyList { public static void addPolicyId(final String policyId) { if (!policyList.contains(policyId)) { policyList.add(policyId); } }  static List<String> getpolicyList(); static void addPolicyId(final String policyId); static void clearPolicyList();  }