TransactionTokenInfo { public boolean needCreate() { return tokenType.needCreate(); } TransactionTokenInfo(final String tokenName,
            final TransactionTokenType tokenType); String getTokenName(); TransactionTokenType getTransactionTokenType(); boolean needValidate(); boolean needCreate(); boolean needKeep(); @Override String toString();  }
@Test public void TestNeedCreate01() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.BEGIN; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needCreate(); assertThat(output, is(true)); }
@Test public void TestNeedCreate02() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.IN; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needCreate(); assertThat(output, is(true)); }
@Test public void TestNeedCreate03() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.END; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needCreate(); assertThat(output, is(false)); }
@Test public void TestNeedCreate04() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.END; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needCreate(); assertThat(output, is(false)); }
@Test public void TestNeedValidate04() { String tokenName = "aaa"; TransactionTokenType beginToken = TransactionTokenType.END; TransactionTokenInfo info = new TransactionTokenInfo(tokenName, beginToken); boolean output = info.needCreate(); assertThat(output, is(false)); }
@Test public void testNeedCreate05() { String tokenName = "aaa"; TransactionTokenType tokenType = TransactionTokenType.CHECK; TransactionTokenInfo tokenInfo = new TransactionTokenInfo(tokenName, tokenType); boolean output = tokenInfo.needCreate(); assertThat(output, is(false)); }