From d1f09980e09de09b95600e5854dfde974f11b1f6 Mon Sep 17 00:00:00 2001 From: rgudwin Date: Wed, 25 Sep 2024 18:29:44 -0300 Subject: [PATCH] updated to cst 1.4.2 --- README.md | 4 +-- build.gradle | 4 +-- .../cst/bindings/soar/JSoarCodeletTest.java | 26 +++++++++++++++++++ 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f16feec..4dba937 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Note: This library is still under development, and some concepts or features mig ``` dependencies { ... - implementation 'com.github.CST-Group:cst-bindings:1.0.7' + implementation 'com.github.CST-Group:cst-bindings:1.0.8' } ``` @@ -53,7 +53,7 @@ Sometimes, the version number (tag) in this README gets out of date, as maintain com.github.CST-Group cst-bindings - 1.0.7 + 1.0.8 ``` diff --git a/build.gradle b/build.gradle index c204e11..9fddd72 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 } -version = '1.0.7' +version = '1.0.8' repositories { flatDir { @@ -39,7 +39,7 @@ configurations { } dependencies { - api('com.github.CST-Group:cst:1.4.1') + api('com.github.CST-Group:cst:1.4.2') api 'com.soartech:jsoar-core:4.1.3' api 'com.soartech:jsoar-debugger:4.1.3' diff --git a/src/test/java/br/unicamp/cst/bindings/soar/JSoarCodeletTest.java b/src/test/java/br/unicamp/cst/bindings/soar/JSoarCodeletTest.java index 3318b11..1b94b62 100644 --- a/src/test/java/br/unicamp/cst/bindings/soar/JSoarCodeletTest.java +++ b/src/test/java/br/unicamp/cst/bindings/soar/JSoarCodeletTest.java @@ -668,5 +668,31 @@ public void removeFromJsonTest(){ mind.shutDown(); assertEquals(expectedJson, testJson); } + + @Test + public void contractViolationTest(){ + Mind mind = new Mind(); + + String soarRulesPath="src/test/resources/mac.soar"; + jSoarCodelet.initSoarPlugin("testAgent", new File(soarRulesPath), false); + mind.insertCodelet(jSoarCodelet); + + mind.start(); + + try{ + Thread.sleep(5000L); + } catch(Exception e){ + e.printStackTrace(); + } + + String inputLink = jSoarCodelet.getInputLinkAsString(); + String outputLink = jSoarCodelet.getOutputLinkAsString(); + + System.out.println(inputLink); + System.out.println(outputLink); + + mind.shutDown(); + +} }