Java junit.framework.AssertionFailedError error

currentCapacity = queue.getCapacityLeft();

if(currentCapacity == queue.getCapacityLeft()) System.out.println("yes");

assertTrue( "Should have resized array",currentCapacity < queue.getCapacityLeft() );

These two have 2 different displays: the first one displays “yes” which means current capacity is equal to queue.getCapacityLeft, but the second one is displayed too.

This is my method:

public int getCapacityLeft() { return 0; }

Why do I have this problem?