python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Simple JUnit test fails
I want to learn how to write JUnit tests and I fail completely.
This is my test:
@Test
public void testGetAllCustomers() {
// given
List<Customer> customerList = new Arra...
FrozenTree
Votes: 0
Answers: 2
How can we compare two hashmaps with case insensitive on both keys and values
I have two maps with both same values, but differing in case, either in key or in value. While asserting, I need to make it as pass. I know the Treemap with case insensitive option can be used, but it...
mmar
Votes: 0
Answers: 1
Creating assertions
So I want to create an assertion class like how AssertJ works. I'm having trouble getting started.
public class Assertion {
static object assertThis(Object o){}
static Intege...
rd1346
Votes: 0
Answers: 1
AssertJ Core, is it possible to get error message with actual field/property difference when checking iterables/arrays content?
In Assertj Core you can compare ojects field by field recursively.
In this test address.countryCode differ in the two objects:
@Test
public void shouldBeEqual() {
Person person1 = createPerson();
...
BruceB
Votes: 0
Answers: 1