Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class AccessResponseObject {
// Class Variables
private String responseText;

private String transactionIdentifier;

/**
* Gets response text.
*
Expand All @@ -43,4 +45,23 @@ public String getResponseText() {
public void setResponseText(String responseText) {
this.responseText = responseText;
}


/**
* Gets transaction identifier.
*
* @return the transactionIdentifier
*/
public String getTransactionIdentifier() {
return transactionIdentifier;
}

/**
* Sets transaction identifier.
*
* @param transactionIdentifier the transactionIdentifier to set
*/
public void setTransactionIdentifier(String transactionIdentifier) {
this.transactionIdentifier = transactionIdentifier;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void setup() {
// Generate a new object
this.obj = new AccessResponseObject();
this.obj.setResponseText("Test");
this.obj.setTransactionIdentifier("Ti");
}

/**
Expand All @@ -57,6 +58,7 @@ void testJson() throws JsonProcessingException {
// Make sure it looks OK
assertNotNull(result);
assertEquals(this.obj.getResponseText(), result.getResponseText());
assertEquals(this.obj.getTransactionIdentifier(), result.getTransactionIdentifier());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class AccessResponseObject {
// Class Variables
private String responseText;

private String transactionIdentifier;

/**
* Gets response text.
*
Expand All @@ -43,4 +45,22 @@ public String getResponseText() {
public void setResponseText(String responseText) {
this.responseText = responseText;
}

/**
* Gets transaction identifier.
*
* @return the transactionIdentifier
*/
public String getTransactionIdentifier() {
return transactionIdentifier;
}

/**
* Sets transaction identifier.
*
* @param transactionIdentifier the transactionIdentifier to set
*/
public void setTransactionIdentifier(String transactionIdentifier) {
this.transactionIdentifier = transactionIdentifier;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void setup() {
// Generate a new object
this.obj = new AccessResponseObject();
this.obj.setResponseText("Test");
this.obj.setTransactionIdentifier("Ti");
}

/**
Expand All @@ -57,6 +58,7 @@ void testJson() throws JsonProcessingException {
// Make sure it looks OK
assertNotNull(result);
assertEquals(this.obj.getResponseText(), result.getResponseText());
assertEquals(this.obj.getTransactionIdentifier(), result.getTransactionIdentifier());
}

}
Loading