summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/auth/attributes/TransactionIdAttributeBuilderTest.java9
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);