Skip to content

Commit

Permalink
start of InMoov2Test
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 22, 2023
1 parent 361b3e8 commit 2674733
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/test/java/org/myrobotlab/service/InMoov2Test.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package org.myrobotlab.service;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.myrobotlab.service.config.OpenCVConfig;

public class InMoov2Test {

@Test
public void testCvFilters() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {

InMoov2 i01 = (InMoov2)Runtime.start("i01", "InMoov2");

// flip
i01.setPeerConfigValue("opencv", "flip", true);
OpenCVConfig cvconfig = (OpenCVConfig)i01.getPeerConfig("opencv");
assertTrue(cvconfig.flip);

i01.setPeerConfigValue("opencv", "flip", false);
cvconfig = (OpenCVConfig)i01.getPeerConfig("opencv");
assertFalse(cvconfig.flip);

}


}

0 comments on commit 2674733

Please sign in to comment.