-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 in LIBS/ihmc-java-ros2-communication from rele…
…ase/0.13.1 to master * commit '8f6dbe56ac538a20f2446ae796c2e7fac311f5eb': (23 commits) 🔖 0.13.1 ⬆️ ihmc-pub-sub 0.10.1. ⬆️ euclid 0.11.0. Get better info about what's hanging. This upgrade adds better test logging. ⬆️ ihmc-build 0.15.5, woops regex missed the plugins block ⬆️ ihmc-build 0.15.5 Push Assert to fix Gradle compile. Convert to JUnit 5. Add JUnit 4 to 5 Assert translator. Upgrade ihmc-ci plugin. ⬆️ ihmc-build 0.15.4 ⬆️ ihmc-ci 1.1.6 ⬆️ ihmc-ci 1.1.5 Fix starting path. Fix LogTools path ⬆️ ihmc-commons 0.24.0 ⬆️ ihmc-ci 1.1.3 Add working dir message. Fix test path. ⬆️ ihmc-ci 1.1.3 ...
- Loading branch information
Showing
18 changed files
with
572 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
buildscript { | ||
repositories { | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
mavenLocal() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath "us.ihmc:ihmc-build:0.15.1" | ||
} | ||
plugins { | ||
id("us.ihmc.ihmc-build") version "0.15.5" | ||
} | ||
apply plugin: "us.ihmc.ihmc-build" |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
group = us.ihmc | ||
version = 0.13.0 | ||
version = 0.13.1 | ||
vcsUrl = https://github.com/ihmcrobotics/ihmc-java-ros2-communication | ||
openSource = true | ||
maintainer = "Duncan Calvert (dcalvert@ihmc.us)" |
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
175 changes: 175 additions & 0 deletions
175
ihmc-ros2-library/src/test/java/us/ihmc/robotics/Assert.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,175 @@ | ||
package us.ihmc.robotics; | ||
|
||
public class Assert | ||
{ | ||
static public void assertTrue(String message, boolean condition) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertTrue(condition, message); | ||
} | ||
|
||
static public void assertTrue(boolean condition) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertTrue(condition); | ||
} | ||
|
||
static public void assertFalse(String message, boolean condition) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertFalse(condition, message); | ||
} | ||
|
||
static public void assertFalse(boolean condition) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertFalse(condition); | ||
} | ||
|
||
static public void fail(String message) | ||
{ | ||
org.junit.jupiter.api.Assertions.fail(message); | ||
} | ||
|
||
static public void fail() | ||
{ | ||
org.junit.jupiter.api.Assertions.fail(); | ||
} | ||
|
||
static public void assertEquals(String message, Object expected, Object actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message); | ||
} | ||
|
||
static public void assertEquals(Object expected, Object actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual); | ||
} | ||
|
||
static public void assertNotEquals(Object expected, Object actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotEquals(expected, actual); | ||
} | ||
|
||
static public void assertNotEquals(long first, long second) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotEquals(first, second); | ||
} | ||
|
||
static public void assertNotEquals(String message, double first, double second, double delta) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotEquals(first, second, message); | ||
} | ||
|
||
static public void assertNotEquals(double first, double second, double delta) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotEquals(first, second); | ||
} | ||
|
||
public static void assertArrayEquals(Object[] expecteds, Object[] actuals) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals); | ||
} | ||
|
||
public static void assertArrayEquals(int[] expecteds, int[] actuals) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals); | ||
} | ||
|
||
public static void assertArrayEquals(byte[] expecteds, byte[] actuals) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals); | ||
} | ||
|
||
public static void assertArrayEquals(double[] expecteds, double[] actuals, double delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals); | ||
else | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals, delta); | ||
} | ||
|
||
public static void assertArrayEquals(float[] expecteds, float[] actuals, float delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals); | ||
else | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(expecteds, actuals, delta); | ||
} | ||
|
||
public static void assertArrayEquals(String string, double[] data, double[] ds, double delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(data, ds, string); | ||
else | ||
org.junit.jupiter.api.Assertions.assertArrayEquals(data, ds, delta, string); | ||
} | ||
|
||
static public void assertEquals(String message, double expected, double actual, double delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message); | ||
else | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta, message); | ||
} | ||
|
||
static public void assertEquals(String message, float expected, float actual, float delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message); | ||
else | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta, message); | ||
} | ||
|
||
static public void assertEquals(long expected, long actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual); | ||
} | ||
|
||
static public void assertEquals(String message, long expected, long actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, message); | ||
} | ||
|
||
static public void assertEquals(double expected, double actual, double delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual); | ||
else | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta); | ||
} | ||
|
||
static public void assertEquals(float expected, float actual, float delta) | ||
{ | ||
if (delta == 0.0) | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual); | ||
else | ||
org.junit.jupiter.api.Assertions.assertEquals(expected, actual, delta); | ||
} | ||
|
||
static public void assertNotNull(String message, Object object) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotNull(object, message); | ||
} | ||
|
||
static public void assertNotNull(Object object) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotNull(object); | ||
} | ||
|
||
static public void assertNull(String message, Object object) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNull(object, message); | ||
} | ||
|
||
static public void assertNull(Object object) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNull(object); | ||
} | ||
|
||
static public void assertSame(Object expected, Object actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertSame(expected, actual); | ||
} | ||
|
||
static public void assertNotSame(Object unexpected, Object actual) | ||
{ | ||
org.junit.jupiter.api.Assertions.assertNotSame(unexpected, actual); | ||
} | ||
} |
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
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
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.