@Test public void deleteAllTest() throws NoSuchFieldException, IllegalAccessException { addItem(AID_BASIC, HASH_BASIC, RULE_BASIC); addItem(AID_BASIC1, HASH_BASIC1, RULE_BASIC1); addItem(AID_BASIC2, HASH_BASIC2, RULE_BASIC2); addItem(AID_BASIC3, HASH_BASIC3, RULE_BASIC3); RuleEntry.deleteAll(); assertEquals("length after deletion", 0, getLength()); }
static void deleteAll() { RuleEntry re = first; while (re != null) { JCSystem.beginTransaction(); re.remove(); re.recycle(); JCSystem.commitTransaction(); re = first; } }
RuleEntry { static void deleteAll() { RuleEntry re = first; while (re != null) { JCSystem.beginTransaction(); re.remove(); re.recycle(); JCSystem.commitTransaction(); re = first; } } }
RuleEntry { static void deleteAll() { RuleEntry re = first; while (re != null) { JCSystem.beginTransaction(); re.remove(); re.recycle(); JCSystem.commitTransaction(); re = first; } } private  RuleEntry(); }
RuleEntry { static void deleteAll() { RuleEntry re = first; while (re != null) { JCSystem.beginTransaction(); re.remove(); re.recycle(); JCSystem.commitTransaction(); re = first; } } private  RuleEntry(); static RuleEntry getFirst(); byte getAidLength(); byte getHashLength(); byte getRuleLength(); RuleEntry getNext(); void setAid(byte[] buf, short ofs, byte len); void setHash(byte[] buf, short ofs, byte len); void setRule(byte[] buf, short ofs, byte len); }
RuleEntry { static void deleteAll() { RuleEntry re = first; while (re != null) { JCSystem.beginTransaction(); re.remove(); re.recycle(); JCSystem.commitTransaction(); re = first; } } private  RuleEntry(); static RuleEntry getFirst(); byte getAidLength(); byte getHashLength(); byte getRuleLength(); RuleEntry getNext(); void setAid(byte[] buf, short ofs, byte len); void setHash(byte[] buf, short ofs, byte len); void setRule(byte[] buf, short ofs, byte len);  }