MCPcopy Create free account
hub / github.com/ReadyTalk/avian / assertEquals

Method assertEquals

test/MessageFormatTest.java:5–9  ·  view source on GitHub ↗
(Object a, Object b)

Source from the content-addressed store, hash-verified

3public class MessageFormatTest {
4
5 private static void assertEquals(Object a, Object b) {
6 if(!a.equals(b)) {
7 throw new RuntimeException("[" + a + "] != [" + b + "]");
8 }
9 }
10
11 public static void main(String[] args) {
12 assertEquals("Hi there", MessageFormat.format("Hi there", "a"));

Callers 1

mainMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected