-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#72] More Zcode filenames to Zscript
- Loading branch information
Showing
23 changed files
with
260 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...s/src/main/java/net/zscript/zscript_acceptance_tests/AcceptanceTestConnectionManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.zscript.zscript_acceptance_tests; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import net.zscript.zscript_acceptance_tests.acceptancetest_asserts.AcceptanceTestConnection; | ||
|
||
public class AcceptanceTestConnectionManager { | ||
private static List<AcceptanceTestConnection> connections = new ArrayList<>(); | ||
|
||
public static void registerConnection(AcceptanceTestConnection con) { | ||
connections.add(con); | ||
} | ||
|
||
public static List<AcceptanceTestConnection> getConnections() { | ||
return connections; | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
.../main/java/net/zscript/zscript_acceptance_tests/ZcodeAcceptanceTestConnectionManager.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...zscript_acceptance_tests/acceptancetest_asserts/AcceptanceTestAssertIntermediateEach.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.zscript.zscript_acceptance_tests.acceptancetest_asserts; | ||
|
||
import java.util.concurrent.Future; | ||
|
||
public class AcceptanceTestAssertIntermediateEach extends AcceptanceTestMessageAssert { | ||
private final AcceptanceTestMessageAssert parent; | ||
|
||
public AcceptanceTestAssertIntermediateEach(AcceptanceTestMessageAssert parent) { | ||
this.parent = parent; | ||
} | ||
|
||
@Override | ||
public Future<?> send() { | ||
return parent.send(); | ||
} | ||
|
||
public AcceptanceTestCondition getAsCondition() { | ||
return (seq, prev) -> { | ||
for (AcceptanceTestCondition condition : conditions) { | ||
condition.test(seq, prev); | ||
} | ||
}; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
.../net/zscript/zscript_acceptance_tests/acceptancetest_asserts/AcceptanceTestCondition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.zscript.zscript_acceptance_tests.acceptancetest_asserts; | ||
|
||
import java.util.List; | ||
|
||
public interface AcceptanceTestCondition { | ||
public void test(AcceptanceTestResponseSequence seq, List<Character> prevUsed); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.