Author: alessio.soldano(a)jboss.com
Date: 2008-05-10 11:54:53 -0400 (Sat, 10 May 2008)
New Revision: 7008
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/fixture/JBossSourceComparator.java
Log:
Fixing JBWS1881TestCase (now the JBossSourceComparator is package aware when checking the
super classes)
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/fixture/JBossSourceComparator.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/fixture/JBossSourceComparator.java 2008-05-10
14:55:26 UTC (rev 7007)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/fixture/JBossSourceComparator.java 2008-05-10
15:54:53 UTC (rev 7008)
@@ -200,7 +200,13 @@
throw new Exception("Class names should be equal");
if ((expected.getSuperJavaClass() != null) && (actual.getSuperJavaClass()
!= null))
{
- if
(!expected.getSuperJavaClass().getName().equals(actual.getSuperJavaClass().getName()))
+ String expSuperClassName = expected.getSuperJavaClass().getName();
+ if (expected.getPackage().length() > 0 &&
expSuperClassName.startsWith(expected.getPackage()))
+ expSuperClassName =
expSuperClassName.substring(expected.getPackage().length() + 1);
+ String actSuperClassName = actual.getSuperJavaClass().getName();
+ if (actual.getPackage().length() > 0 &&
actSuperClassName.startsWith(actual.getPackage()))
+ actSuperClassName = actSuperClassName.substring(actual.getPackage().length()
+ 1);
+ if (!expSuperClassName.equals(actSuperClassName))
throw new Exception("Super class should be equal");
}
if ((expected.getSuperJavaClass() == null) ^ (actual.getSuperJavaClass() == null))
Show replies by date