[jbossws-commits] JBossWS SVN: r3221 - branches/jbossws-2.0/jbossws-tests/src/java/org/jboss/test/ws/jaxws/xop.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu May 24 06:26:46 EDT 2007


Author: heiko.braun at jboss.com
Date: 2007-05-24 06:26:46 -0400 (Thu, 24 May 2007)
New Revision: 3221

Modified:
   branches/jbossws-2.0/jbossws-tests/src/java/org/jboss/test/ws/jaxws/xop/MimeDeclarationTestCase.java
Log:


Modified: branches/jbossws-2.0/jbossws-tests/src/java/org/jboss/test/ws/jaxws/xop/MimeDeclarationTestCase.java
===================================================================
--- branches/jbossws-2.0/jbossws-tests/src/java/org/jboss/test/ws/jaxws/xop/MimeDeclarationTestCase.java	2007-05-24 10:21:49 UTC (rev 3220)
+++ branches/jbossws-2.0/jbossws-tests/src/java/org/jboss/test/ws/jaxws/xop/MimeDeclarationTestCase.java	2007-05-24 10:26:46 UTC (rev 3221)
@@ -51,20 +51,20 @@
 
    public void testFieldAnnotation() throws Exception
    {
-      AttachmentScanResult mimeType = SCANNER.scan(FieldAnnotation.class);
+      AttachmentScanResult mimeType = SCANNER.scanBean(FieldAnnotation.class);
       assertNotNull("Unable to find xop declaration", mimeType);
       assertEquals("text/xml", mimeType.getMimeType());
    }
 
    public void testMethodAnnotation() throws Exception
    {
-      AttachmentScanResult  mimeType = SCANNER.scan(MethodAnnotation.class);
+      AttachmentScanResult  mimeType = SCANNER.scanBean(MethodAnnotation.class);
       assertNotNull("Unable to find xop declaration", mimeType);
    }
 
    public void testAnnotationMissing() throws Exception
    {
-      AttachmentScanResult  mimeType = SCANNER.scan(NoAnnotation.class);
+      AttachmentScanResult  mimeType = SCANNER.scanBean(NoAnnotation.class);
       assertNull("There should be no mimeType available", mimeType);
    }
 
@@ -82,20 +82,20 @@
 
       System.out.println(m.getParameterAnnotations().length);
 
-      AttachmentScanResult  mimeType = SCANNER.scan( m.getParameterTypes()[0]);
+      AttachmentScanResult  mimeType = SCANNER.scanBean( m.getParameterTypes()[0]);
       assertNotNull("Unable to find xop declaration", mimeType);
       assertEquals("text/xml", mimeType.getMimeType());
    }
 
    public void testSimpleRecursion() throws Exception
    {
-      AttachmentScanResult  mimeType = SCANNER.scan(SimpleRecursion.class);
+      AttachmentScanResult  mimeType = SCANNER.scanBean(SimpleRecursion.class);
       assertNull(mimeType);
    }
 
    public void testComplexRecursion() throws Exception
    {
-      AttachmentScanResult  mimeType = SCANNER.scan(ComplexRecursion.class);
+      AttachmentScanResult  mimeType = SCANNER.scanBean(ComplexRecursion.class);
       assertNotNull("Unable to find xop declaration", mimeType);
       assertEquals("text/plain", mimeType.getMimeType());
    }




More information about the jbossws-commits mailing list