cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/7] git commit: Remove a test that wasn't actually testing a validation error and was thus not working correctly with moxy
Date Wed, 26 Mar 2014 21:12:47 GMT
Repository: cxf
Updated Branches:
  refs/heads/master cc4fc2c87 -> 364ef7745


Remove a test that wasn't actually testing a validation error and was thus not working correctly
with moxy


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/21e62294
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/21e62294
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/21e62294

Branch: refs/heads/master
Commit: 21e62294ef0fa905db70f1704df6999d2ff5aedb
Parents: cc4fc2c
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Mar 26 14:46:50 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Mar 26 14:46:50 2014 -0400

----------------------------------------------------------------------
 .../cxf/jaxb/io/XMLStreamDataWriterTest.java    | 29 --------------------
 1 file changed, 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/21e62294/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
----------------------------------------------------------------------
diff --git a/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
b/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
index 77488a6..95c6c98 100644
--- a/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
+++ b/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/io/XMLStreamDataWriterTest.java
@@ -66,35 +66,6 @@ public class XMLStreamDataWriterTest extends Assert {
     public void tearDown() throws Exception {
         baos.close();
     }
-    
-    @Test
-    public void testSetProperty() throws Exception {
-        JAXBDataBinding db = getTestWriterFactory();
-               
-        DataWriterImpl<XMLStreamWriter> dw = (DataWriterImpl<XMLStreamWriter>)db.createWriter(XMLStreamWriter.class);
-        assertNotNull(dw);
-        
-        // Build message to set custom event handler
-        org.apache.cxf.message.Message message = new org.apache.cxf.message.MessageImpl();
-        message.put("jaxb-writer-validation-event-handler", new MyCustomHandler());
-    
-        dw.setProperty("org.apache.cxf.message.Message", message);     
-        
-        // Write Stuff
-        TradePriceData val = new TradePriceData();
-        val.setTickerSymbol("This is a symbol");
-        val.setTickerPrice(1.0f);
-        
-        QName elName = new QName("http://apache.org/hello_world_doc_lit_bare/types", "inout");
-        MessagePartInfo part = new MessagePartInfo(elName, null);
-        part.setElement(true);
-        part.setElementQName(elName);
-        dw.write(val, part, streamWriter);
-        streamWriter.flush();
-        
-        // Test MyCustomHandler
-        assertTrue(((MyCustomHandler)dw.veventHandler).getUsed());       
-    }
 
     @Test
     public void testWriteRPCLit1() throws Exception {


Mime
View raw message