Skip to content

Commit

Permalink
fix(plc4j/s7): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Apr 28, 2023
1 parent 5cba298 commit 7647763
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plc4go/internal/cbus/tagtype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plc4go/internal/modbus/tagtype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plc4go/internal/s7/tagtype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plc4go/spi/testutils/steptype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions plc4j/drivers/s7/src/test/java/S7IoTest.java
Expand Up @@ -34,7 +34,8 @@ public class S7IoTest {

@Test
void TestS7MessageBytes() throws Exception {
String wantBoxStringSerialized = "╔═TPKTPacket═══════════════════════════════════════════════════════════════════════════════════════════════════════╗\n"
String wantBoxStringSerialized = ""
+ "╔═TPKTPacket═══════════════════════════════════════════════════════════════════════════════════════════════════════╗\n"
+ "║╔═protocolId╗╔═reserved╗╔═len═════╗ ║\n"
+ "║║ 0x03 3 ║║ 0x00 0 ║║0x001d 29║ ║\n"
+ "║╚═══════════╝╚═════════╝╚═════════╝ ║\n"
Expand Down Expand Up @@ -88,7 +89,8 @@ void TestS7MessageBytes() throws Exception {
+ "║║╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════╝║║\n"
+ "║╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝║\n"
+ "╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝";
String wantBoxStringSerializedCompact = "╔═TPKTPacket═════════════════════════════════════════════════════════════════════════════════════╗\n"
String wantBoxStringSerializedCompact = ""
+ "╔═TPKTPacket═════════════════════════════════════════════════════════════════════════════════════╗\n"
+ "║╔═protocolId╗╔═reserved╗╔═len═════╗ ║\n"
+ "║║ 0x03 3 ║║ 0x00 0 ║║0x001d 29║ ║\n"
+ "║╚═══════════╝╚═════════╝╚═════════╝ ║\n"
Expand Down
Expand Up @@ -24,8 +24,10 @@ public class S7DriverIT extends DriverTestsuiteRunner {

public S7DriverIT() {
super("/protocols/s7/DriverTestsuite.xml",
"Single element read request",
"Single element read request with disabled PUT/GET");
// TODO: ignored due to carcia changes
"Single element read request",
"Single element read request with disabled PUT/GET"
);
}

}
Expand Up @@ -24,13 +24,15 @@ public class S7ParserSerializerTest extends ParserSerializerTestsuiteRunner {

public S7ParserSerializerTest() {
super("/protocols/s7/ParserSerializerTestsuite.xml",
"S7 Read PLC Type Request",
"S7 Read PLC Type Response",
"S7 Read Request",
"S7 Read Response",
"S7 Read Error Response",
"S7 Write Request",
"S7 Write Request");
// TODO: ignored due to carcia changes
"S7 Read PLC Type Request",
"S7 Read PLC Type Response",
"S7 Read Request",
"S7 Read Response",
"S7 Read Error Response",
"S7 Write Request",
"S7 Write Request"
);
}

}
4 changes: 2 additions & 2 deletions plc4j/pom.xml
Expand Up @@ -153,7 +153,7 @@
</plugin>

<!--
As our libraries should be consumable on Java 1.8, downgrade the compiler settings.
As our libraries should be consumable on Java 11, downgrade the compiler settings.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -166,7 +166,7 @@
<goal>compile</goal>
</goals>
<configuration>
<release>8</release>
<release>11</release>
</configuration>
</execution>
<execution>
Expand Down

0 comments on commit 7647763

Please sign in to comment.