Skip to content

Commit

Permalink
updated to cst 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgudwin committed Sep 25, 2024
1 parent da10756 commit d1f0998
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand All @@ -53,7 +53,7 @@ Sometimes, the version number (tag) in this README gets out of date, as maintain
<dependency>
<groupId>com.github.CST-Group</groupId>
<artifactId>cst-bindings</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

version = '1.0.7'
version = '1.0.8'

repositories {
flatDir {
Expand All @@ -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'
Expand Down
26 changes: 26 additions & 0 deletions src/test/java/br/unicamp/cst/bindings/soar/JSoarCodeletTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

}

0 comments on commit d1f0998

Please sign in to comment.