From 7445c192cad18f2aa2d8731cc9b3df3fb047bb54 Mon Sep 17 00:00:00 2001 From: Thomas Corbat Date: Fri, 11 Oct 2013 09:48:02 +0200 Subject: [PATCH] Changed assertNotEquals to assertFalse to comply with JUnit 4.8.1 Change-Id: I51ece211f04c23c2f654b60ecfd662dfb9717890 Reviewed-on: https://git.eclipse.org/r/17291 Reviewed-by: Marc Khouzam IP-Clean: Marc Khouzam Tested-by: Marc Khouzam --- .../org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java index e3ef752c731..287c8798d99 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIRegistersTest.java @@ -13,7 +13,7 @@ package org.eclipse.cdt.tests.dsf.gdb.tests; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; @@ -590,7 +590,7 @@ public class MIRegistersTest extends BaseTestCase { String sp_f1_str = getModelDataForRegisterDataValue(frame1, IFormattedValues.HEX_FORMAT, sp_reg_f1.getRegNo()); //The stack pointer's are not expected to be the same among frames - assertNotEquals("Stack pointers shall be different among frames", sp_f0_str, sp_f1_str); + assertFalse("Stack pointers shall be different among frames", sp_f0_str.equals(sp_f1_str)); } private IRegisterDMContext findStackPointerRegister(String sp_name, IRegisterDMContext[] registerDMCs) throws InterruptedException, ExecutionException {