diff options
author | Thomas <> | 2022-01-09 17:10:42 +0100 |
---|---|---|
committer | Thomas <> | 2022-01-09 17:10:42 +0100 |
commit | e28540643df720d0f3ea2d00c8bee8f0beeebce8 (patch) | |
tree | 7b12a024544f9546b226a6b6c81d51bc37c53f4a /eaaf_core/src/test/java | |
parent | b5980663a63b3c128a8714fe7c13339eaa0a2955 (diff) | |
download | EAAF-Components-e28540643df720d0f3ea2d00c8bee8f0beeebce8.tar.gz EAAF-Components-e28540643df720d0f3ea2d00c8bee8f0beeebce8.tar.bz2 EAAF-Components-e28540643df720d0f3ea2d00c8bee8f0beeebce8.zip |
test(core): fix invalid test for TransactionId attribute-builder
Diffstat (limited to 'eaaf_core/src/test/java')
-rw-r--r-- | eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java index d82bdf5c..d1c3a69f 100644 --- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java +++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java @@ -1,6 +1,7 @@ package at.gv.egiz.eaaf.core.impl.idp.auth.attributes; import org.junit.Assert; +import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; @@ -25,6 +26,12 @@ public class TransactionIdAttributeBuilderTest extends AbstractAttributeBuilderT private final IAttributeBuilder attrBuilder = new TransactionIdAttributeBuilder(); + @Before + public void initialize() { + TransactionIdUtils.removeTransactionId(); + + } + @Test public void attributeName() { Assert.assertEquals("Wrong attribute name", @@ -50,7 +57,7 @@ public class TransactionIdAttributeBuilderTest extends AbstractAttributeBuilderT public void withTransactionId() throws AttributeBuilderException, Exception { TransactionIdUtils.setTransactionId(); String transId = TransactionIdUtils.getTransactionId(); - Assert.assertNull("Inputdata is null", transId); + Assert.assertNotNull("Inputdata is null", transId); String value = attrBuilder.build(spConfig, buildAuthData(), gen); Assert.assertEquals("TransactionId", transId, value); |