Author: swd847
Date: 2010-07-25 00:43:53 -0400 (Sun, 25 Jul 2010)
New Revision: 13498
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/BootstrapTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/NamespaceResolverTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/constructor/ConstructorTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetArrayFieldValueBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetCollectionFieldValueBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetFieldValueBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetMapFieldValueBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/generic/GenericBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/ProducerFieldValueBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/QualifierAttributesTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/interceptor/InterceptorTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/PrimitiveMethodTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/producer/MultipleProducerBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/stereotype/StereotypeTest.java
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/types/TypesTest.java
Log:
replace assert with Assert.assertTrue
Modified: modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/BootstrapTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/BootstrapTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/BootstrapTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -23,6 +23,8 @@
import java.util.List;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.bootstrap.XmlDocumentProvider;
import org.jboss.seam.xml.bootstrap.XmlExtension;
import org.junit.Test;
@@ -35,7 +37,7 @@
{
XmlExtension extension = getReference(XmlExtension.class);
List<Class<? extends XmlDocumentProvider>> providers =
extension.getDocumentProviders();
- assert providers.size() == 2;
+ Assert.assertTrue(providers.size() == 2);
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/NamespaceResolverTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/NamespaceResolverTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/NamespaceResolverTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -24,6 +24,8 @@
import java.util.ArrayList;
import java.util.List;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.model.FieldXmlItem;
import org.jboss.seam.xml.model.MethodXmlItem;
import org.jboss.seam.xml.model.XmlItem;
@@ -60,19 +62,19 @@
{
XmlItem item = resolver.getItemForNamespace(new SaxNode("Bean1", null,
null, null, null, 0), null);
- assert item.getJavaClass() == Bean1.class : "Namespace resolver returned wrong
class type";
- assert item.getType() == XmlItemType.CLASS : "Namespace resolver did not
return class";
+ Assert.assertTrue("Namespace resolver returned wrong class type",
item.getJavaClass() == Bean1.class);
+ Assert.assertTrue("Namespace resolver did not return class",
item.getType() == XmlItemType.CLASS);
XmlItem method = resolver.getItemForNamespace(new SaxNode("method1",
null, null, null, null, 0), item);
- assert method.getType() == XmlItemType.METHOD : "Item returned wrong
type";
+ Assert.assertTrue("Item returned wrong type", method.getType() ==
XmlItemType.METHOD);
method.resolveChildren();
- assert ((MethodXmlItem) method).getMethod() != null : "Could not resolve
method";
- assert ((MethodXmlItem) method).getMethod().getParameterTypes().length == 0 :
"Wrong method was resolved";
+ Assert.assertTrue("Could not resolve method", ((MethodXmlItem)
method).getMethod() != null);
+ Assert.assertTrue("Wrong method was resolved", ((MethodXmlItem)
method).getMethod().getParameterTypes().length == 0);
XmlItem field = resolver.getItemForNamespace(new SaxNode("field1", null,
null, null, null, 0), item);
- assert ((FieldXmlItem) field).getType() == XmlItemType.FIELD : "Element of
wrong type returned";
- assert ((FieldXmlItem) field).getField() != null : "field was not set";
+ Assert.assertTrue("Element of wrong type returned", ((FieldXmlItem)
field).getType() == XmlItemType.FIELD);
+ Assert.assertTrue("field was not set", ((FieldXmlItem) field).getField()
!= null);
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/constructor/ConstructorTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/constructor/ConstructorTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/constructor/ConstructorTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.constructor;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -36,7 +38,7 @@
public void testBeanConstructorAnnotations()
{
ConstructedBean bean = getReference(ConstructedBean.class);
- assert bean.getValue() == 10;
+ Assert.assertTrue(bean.getValue() == 10);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetArrayFieldValueBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetArrayFieldValueBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetArrayFieldValueBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.fieldset;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.junit.Test;
@@ -38,15 +40,15 @@
public void arrayFieldSetterTest()
{
ArrayFieldValue x = WeldManagerUtils.getInstanceByType(manager,
ArrayFieldValue.class);
- assert x.carray.length == 2;
- assert x.iarray.length == 2;
- assert x.sarray.length == 2;
- assert x.sarray[0].equals("hello");
- assert x.sarray[1].equals("world");
- assert x.iarray[0] == 1;
- assert x.iarray[1] == 2;
- assert x.carray[0] == Integer.class;
- assert x.carray[1] == Long.class;
+ Assert.assertTrue(x.carray.length == 2);
+ Assert.assertTrue(x.iarray.length == 2);
+ Assert.assertTrue(x.sarray.length == 2);
+ Assert.assertTrue(x.sarray[0].equals("hello"));
+ Assert.assertTrue(x.sarray[1].equals("world"));
+ Assert.assertTrue(x.iarray[0] == 1);
+ Assert.assertTrue(x.iarray[1] == 2);
+ Assert.assertTrue(x.carray[0] == Integer.class);
+ Assert.assertTrue(x.carray[1] == Long.class);
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetCollectionFieldValueBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetCollectionFieldValueBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetCollectionFieldValueBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.fieldset;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.junit.Test;
@@ -38,20 +40,20 @@
public void collectionSetFieldValue()
{
CollectionFieldValue x = WeldManagerUtils.getInstanceByType(manager,
CollectionFieldValue.class);
- assert x.iset.size() == 2;
- assert x.clist.size() == 2;
- assert x.sset.size() == 2;
+ Assert.assertTrue(x.iset.size() == 2);
+ Assert.assertTrue(x.clist.size() == 2);
+ Assert.assertTrue(x.sset.size() == 2);
boolean first = true;
for (String i : x.sset)
{
if (first)
{
- assert i.equals("1");
+ Assert.assertTrue(i.equals("1"));
first = false;
}
else
{
- assert i.equals("2");
+ Assert.assertTrue(i.equals("2"));
}
}
@@ -60,17 +62,17 @@
{
if (first)
{
- assert i.equals(new Integer(1));
+ Assert.assertTrue(i.equals(new Integer(1)));
first = false;
}
else
{
- assert i.equals(new Integer(2));
+ Assert.assertTrue(i.equals(new Integer(2)));
}
}
- assert x.clist.get(0) == Integer.class;
- assert x.clist.get(1) == Long.class;
+ Assert.assertTrue(x.clist.get(0) == Integer.class);
+ Assert.assertTrue(x.clist.get(1) == Long.class);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetFieldValueBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetFieldValueBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetFieldValueBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -25,6 +25,8 @@
import javax.enterprise.util.AnnotationLiteral;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.seam.xml.test.method.QualifierEnum;
import org.junit.Test;
@@ -42,15 +44,15 @@
public void simpleFieldSetterTest()
{
FieldValueBean x = getReference(FieldValueBean.class);
- assert x.bigDecimalValue.compareTo(BigDecimal.TEN) == 0;
- assert x.bvalue == true;
- assert x.dvalue == 0;
- assert x.enumValue == QualifierEnum.A;
- assert x.fvalue == 0;
- assert x.getIvalue() == 11;
- assert x.lvalue == 23;
- assert x.svalue == 4;
- assert x.noFieldValue == 7;
+ Assert.assertTrue(x.bigDecimalValue.compareTo(BigDecimal.TEN) == 0);
+ Assert.assertTrue(x.bvalue == true);
+ Assert.assertTrue(x.dvalue == 0);
+ Assert.assertTrue(x.enumValue == QualifierEnum.A);
+ Assert.assertTrue(x.fvalue == 0);
+ Assert.assertTrue(x.getIvalue() == 11);
+ Assert.assertTrue(x.lvalue == 23);
+ Assert.assertTrue(x.svalue == 4);
+ Assert.assertTrue(x.noFieldValue == 7);
}
@@ -60,15 +62,15 @@
FieldValueBean x = getReference(FieldValueBean.class, new
AnnotationLiteral<FieldsetQualifier>()
{
});
- assert x.bigDecimalValue.compareTo(BigDecimal.TEN) == 0;
- assert x.bvalue == true;
- assert x.dvalue == 0;
- assert x.enumValue == QualifierEnum.A;
- assert x.fvalue == 0;
- assert x.getIvalue() == 11;
- assert x.lvalue == 23;
- assert x.svalue == 4;
- assert x.noFieldValue == 7;
+ Assert.assertTrue(x.bigDecimalValue.compareTo(BigDecimal.TEN) == 0);
+ Assert.assertTrue(x.bvalue == true);
+ Assert.assertTrue(x.dvalue == 0);
+ Assert.assertTrue(x.enumValue == QualifierEnum.A);
+ Assert.assertTrue(x.fvalue == 0);
+ Assert.assertTrue(x.getIvalue() == 11);
+ Assert.assertTrue(x.lvalue == 23);
+ Assert.assertTrue(x.svalue == 4);
+ Assert.assertTrue(x.noFieldValue == 7);
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetMapFieldValueBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetMapFieldValueBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/fieldset/SetMapFieldValueBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.fieldset;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.junit.Test;
@@ -38,13 +40,13 @@
public void mapSetFieldValue()
{
MapFieldValue x = WeldManagerUtils.getInstanceByType(manager,
MapFieldValue.class);
- assert x.map1.size() == 2;
- assert x.map2.size() == 2;
+ Assert.assertTrue(x.map1.size() == 2);
+ Assert.assertTrue(x.map2.size() == 2);
- assert x.map1.get(1).equals("hello");
- assert x.map1.get(2).equals("world");
- assert x.map2.get("1") == Integer.class;
- assert x.map2.get("2") == Long.class;
+ Assert.assertTrue(x.map1.get(1).equals("hello"));
+ Assert.assertTrue(x.map1.get(2).equals("world"));
+ Assert.assertTrue(x.map2.get("1") == Integer.class);
+ Assert.assertTrue(x.map2.get("2") == Long.class);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/generic/GenericBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/generic/GenericBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/generic/GenericBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -23,6 +23,8 @@
import javax.enterprise.util.AnnotationLiteral;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -45,7 +47,7 @@
dep = getReference(GenericDependant.class, new
AnnotationLiteral<LowGenericQualifier>()
{
});
- assert dep.getValue() == 11 : " actual " + dep.getValue();
+ Assert.assertTrue(" actual " + dep.getValue(), dep.getValue() == 11);
}
@Test
@@ -54,15 +56,15 @@
GenericDependant dep = getReference(GenericDependant.class, new
AnnotationLiteral<HighGenericQualifier>()
{
});
- assert dep.initCalled;
+ Assert.assertTrue(dep.initCalled);
dep = getReference(GenericDependant.class, new
AnnotationLiteral<LowGenericQualifier>()
{
});
- assert dep.initCalled;
+ Assert.assertTrue(dep.initCalled);
GenericMain main = getReference(GenericMain.class, new
AnnotationLiteral<LowGenericQualifier>()
{
});
- assert main.init;
+ Assert.assertTrue(main.init);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/ProducerFieldValueBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/ProducerFieldValueBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/ProducerFieldValueBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.injection;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -38,7 +40,7 @@
{
RecieverBean s = getReference(RecieverBean.class);
- assert s.value.equals("hello world");
+ Assert.assertTrue(s.value.equals("hello world"));
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/QualifierAttributesTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/QualifierAttributesTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/injection/QualifierAttributesTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.injection;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.junit.Test;
@@ -41,8 +43,8 @@
public void tstQualifiersWithAttributes()
{
QualifierTestBean x = WeldManagerUtils.getInstanceByType(manager,
QualifierTestBean.class);
- assert x.bean1.getBeanNumber() == 1;
- assert x.bean2.getBeanNumber() == 2;
+ Assert.assertTrue(x.bean1.getBeanNumber() == 1);
+ Assert.assertTrue(x.bean2.getBeanNumber() == 2);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/interceptor/InterceptorTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/interceptor/InterceptorTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/interceptor/InterceptorTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.interceptor;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -39,7 +41,7 @@
InterceptedBean x = getReference(InterceptedBean.class);
String res = x.method();
- assert res.equals("hello world");
+ Assert.assertTrue(res.equals("hello world"));
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/PrimitiveMethodTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/PrimitiveMethodTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/method/PrimitiveMethodTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -23,6 +23,8 @@
import javax.enterprise.util.AnnotationLiteral;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -39,11 +41,11 @@
public void methodTest()
{
int x = getReference(int.class, new Qual1Lit());
- assert x == 1;
+ Assert.assertTrue(x == 1);
int[] y = getReference(int[].class, new Qual2Lit());
for (int i = 0; i < y.length; ++i)
{
- assert y[i] == i + 2;
+ Assert.assertTrue(y[i] == i + 2);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/producer/MultipleProducerBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/producer/MultipleProducerBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/producer/MultipleProducerBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.producer;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -38,8 +40,8 @@
{
Reciever s = getReference(Reciever.class);
- assert s.val1 == 1;
- assert s.val2 == 2;
+ Assert.assertTrue(s.val1 == 1);
+ Assert.assertTrue(s.val2 == 2);
}
@Test
@@ -47,7 +49,7 @@
{
Reciever s = getReference(Reciever.class);
- assert s.meth1 == 1;
- assert s.meth2 == 2;
+ Assert.assertTrue(s.meth1 == 1);
+ Assert.assertTrue(s.meth2 == 2);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/simple/SimpleBeanTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -26,6 +26,8 @@
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.util.AnnotationLiteral;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.junit.Test;
@@ -45,20 +47,20 @@
public void simpleBeanTest()
{
Bean1 x = getReference(Bean1.class);
- assert x != null;
- assert x.bean2 != null;
+ Assert.assertTrue(x != null);
+ Assert.assertTrue(x.bean2 != null);
Bean3 y = getReference(Bean3.class);
- assert y != null;
- assert x.value == 1 : "Post construct method not called";
+ Assert.assertTrue(y != null);
+ Assert.assertTrue("Post construct method not called", x.value == 1);
}
@Test
public void testOverride()
{
Set<Bean<?>> beans = manager.getBeans(OverriddenBean.class);
- assert beans.size() == 1;
- assert beans.iterator().next().getName().equals("someBean");
+ Assert.assertTrue(beans.size() == 1);
+ Assert.assertTrue(beans.iterator().next().getName().equals("someBean"));
}
@@ -73,7 +75,7 @@
};
ExtendedBean ext = getReference(ExtendedBean.class, e1, e2);
- assert ext != null;
+ Assert.assertTrue(ext != null);
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/stereotype/StereotypeTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/stereotype/StereotypeTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/stereotype/StereotypeTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.stereotype;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.seam.xml.test.interceptor.InterceptedBean;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
@@ -45,7 +47,7 @@
InterceptedBean x = WeldManagerUtils.getInstanceByType(manager,
InterceptedBean.class);
String res = x.method();
- assert res.equals("hello world");
+ Assert.assertTrue(res.equals("hello world"));
}
}
Modified:
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/types/TypesTest.java
===================================================================
---
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/types/TypesTest.java 2010-07-25
03:50:38 UTC (rev 13497)
+++
modules/xml/trunk/impl/src/test/java/org/jboss/seam/xml/test/types/TypesTest.java 2010-07-25
04:43:53 UTC (rev 13498)
@@ -21,6 +21,8 @@
*/
package org.jboss.seam.xml.test.types;
+import junit.framework.Assert;
+
import org.jboss.seam.xml.test.AbstractXMLTest;
import org.jboss.weld.environment.se.util.WeldManagerUtils;
import org.junit.Test;
@@ -42,8 +44,8 @@
{
TypeInjectedClass x = WeldManagerUtils.getInstanceByType(manager,
TypeInjectedClass.class);
- assert x.value instanceof AllowedType;
- assert x.createValue instanceof RestrictedType;
+ Assert.assertTrue(x.value instanceof AllowedType);
+ Assert.assertTrue(x.createValue instanceof RestrictedType);
}
}