TransactionTokenInfo { public boolean needValidate() { return tokenType.needValidate(); } TransactionTokenInfo(final String tokenName,
            final TransactionTokenType tokenType); String getTokenName(); TransactionTokenType getTransactionTokenType(); boolean needValidate(); boolean needCreate(); boolean needKeep(); @Override String toString();  }
@Test public void TestNeedValidate01() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.BEGIN; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needValidate(); assertThat(output, is(false)); }
@Test public void TestNeedValidate02() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.IN; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needValidate(); assertThat(output, is(true)); }
@Test public void TestNeedValidate03() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.END; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needValidate(); assertThat(output, is(true)); }
@Test public void testNeedValidate05() { String tokenName = "aaa"; TransactionTokenType tokenType = TransactionTokenType.CHECK; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, tokenType); boolean output = info.needValidate(); assertThat(output, is(true)); }