mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-03-22 12:05:59 +00:00
issue_872: Applied lombok to these test classes.
Some checks failed
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Has been cancelled
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Has been cancelled
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Has been cancelled
HIRS System Tests / DockerTests (push) Has been cancelled
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Has been cancelled
Some checks failed
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (ubuntu-20.04) (push) Has been cancelled
Dotnet Provisioner Unit Tests / Restore and Run Unit Tests (windows-2022) (push) Has been cancelled
HIRS Build and Unit Test / ACA_Provisioner_Unit_Tests (push) Has been cancelled
HIRS System Tests / DockerTests (push) Has been cancelled
Dotnet Provisioner Unit Tests / Evaluate Tests (push) Has been cancelled
This commit is contained in:
parent
1123af6f29
commit
40377dd241
@ -3,12 +3,14 @@ package hirs.structs.converters;
|
||||
import hirs.structs.elements.Struct;
|
||||
import hirs.structs.elements.StructElementLength;
|
||||
import hirs.structs.elements.StructElements;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* A struct to be embedded within TestStruct.
|
||||
*/
|
||||
@Getter
|
||||
@StructElements(elements = {"embeddedSize", "embeddedShort", "embedded"})
|
||||
public class TestEmbeddedStruct implements Struct {
|
||||
|
||||
@ -20,7 +22,6 @@ public class TestEmbeddedStruct implements Struct {
|
||||
|
||||
private static final byte[] DEFAULT_ARRAY = new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
|
||||
|
||||
|
||||
@StructElementLength(fieldName = "embedded")
|
||||
private int embeddedSize = EMBEDDED_SIZE;
|
||||
|
||||
@ -57,30 +58,4 @@ public class TestEmbeddedStruct implements Struct {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public byte[] getEmbedded() {
|
||||
return embedded;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public short getEmbeddedShort() {
|
||||
return embeddedShort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public int getEmbeddedSize() {
|
||||
return embeddedSize;
|
||||
}
|
||||
}
|
||||
|
@ -3,10 +3,12 @@ package hirs.structs.converters;
|
||||
import hirs.structs.elements.Struct;
|
||||
import hirs.structs.elements.StructElementLength;
|
||||
import hirs.structs.elements.StructElements;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* A Struct class designed to fully test the design of the converter being tested.
|
||||
*/
|
||||
@Getter
|
||||
@StructElements(
|
||||
elements = {"testShort", "testEmbeddedStruct", "testByte", "testVariableStructLength",
|
||||
"testVariableStruct"})
|
||||
@ -52,48 +54,4 @@ public class TestStruct implements Struct {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public byte getTestByte() {
|
||||
return testByte;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public short getTestShort() {
|
||||
return testShort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public TestEmbeddedStruct getTestEmbeddedStruct() {
|
||||
return testEmbeddedStruct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public TestVariableStruct getTestVariableStruct() {
|
||||
return testVariableStruct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter.
|
||||
*
|
||||
* @return value
|
||||
*/
|
||||
public int getTestVariableStructLength() {
|
||||
return testVariableStructLength;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user