Skip to content

Commit a49c790

Browse files
committed
Changed "deSerialize" to "Serialize"
1 parent 261c2c5 commit a49c790

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/main/java/edu/ie3/datamodel/io/processor/Processor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ protected String processMethodResult(Object methodReturnObject, Method method, S
279279
"QV",
280280
"ReactivePowerCharacteristic",
281281
"CharacteristicInput" -> resultStringBuilder.append(
282-
((CharacteristicInput<?, ?>) methodReturnObject).deSerialize());
282+
((CharacteristicInput<?, ?>) methodReturnObject).Serialize());
283283
case "UUID[]" -> resultStringBuilder.append(processUUIDArray((UUID[]) methodReturnObject));
284284
case "ControlStrategy" -> resultStringBuilder.append(
285285
((ControlStrategy) methodReturnObject).getKey());

src/main/java/edu/ie3/datamodel/models/input/system/characteristic/CharacteristicInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public SortedSet<CharacteristicPoint<A, O>> getPoints() {
110110
*
111111
* @return the characteristic as de-serialized string
112112
*/
113-
public String deSerialize() {
113+
public String Serialize() {
114114
return characteristicPrefix
115115
+ ":{"
116116
+ points.stream().map(CharacteristicPoint::deSerialize).collect(Collectors.joining(","))

src/test/groovy/edu/ie3/datamodel/models/system/characteristic/OlmCharacteristicTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class OlmCharacteristicTest extends Specification {
3737

3838
def "A OlmCharacteristicInput is correctly de-serialized"() {
3939
when:
40-
String actual = validInput.deSerialize()
40+
String actual = validInput.Serialize()
4141

4242
then:
4343
actual == "olm:{(10.0,0.05),(15.0,0.1),(20.0,0.2)}"

src/test/groovy/edu/ie3/datamodel/models/system/characteristic/ReactivePowerCharacteristicTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ReactivePowerCharacteristicTest extends Specification {
6969

7070
def "A valid CosPhiFixed is correctly de-serialized"() {
7171
when: "De-serializing a valid input"
72-
String actual = validCosPhiFixed.deSerialize()
72+
String actual = validCosPhiFixed.Serialize()
7373

7474
then: "it returns the correct string"
7575
actual == validCosPhiFixedDeSerialized
@@ -94,7 +94,7 @@ class ReactivePowerCharacteristicTest extends Specification {
9494

9595
def "A valid CosPhiP is correctly de-serialized"() {
9696
when: "De-serializing a valid input"
97-
String actual = validCosPhiP.deSerialize()
97+
String actual = validCosPhiP.Serialize()
9898

9999
then: "it returns the correct string"
100100
actual == validCosPhiPDeSerialized
@@ -119,7 +119,7 @@ class ReactivePowerCharacteristicTest extends Specification {
119119

120120
def "A valid QV is correctly de-serialized"() {
121121
when: "De-serializing a valid input"
122-
String actual = validQV.deSerialize()
122+
String actual = validQV.Serialize()
123123

124124
then: "it returns the correct string"
125125
actual == validQVDeSerialized

src/test/groovy/edu/ie3/datamodel/models/system/characteristic/WecCharacteristicTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WecCharacteristicTest extends Specification {
3737

3838
def "A WecCharacteristicInput is correctly de-serialized"() {
3939
when:
40-
String actual = validInput.deSerialize()
40+
String actual = validInput.Serialize()
4141

4242
then:
4343
actual == "cP:{(10.0,0.05),(15.0,0.1),(20.0,0.2)}"

0 commit comments

Comments
 (0)