abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1697770 - /abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
Date Tue, 25 Aug 2015 21:17:38 GMT
Author: veithen
Date: Tue Aug 25 21:17:38 2015
New Revision: 1697770

URL: http://svn.apache.org/r1697770
Log:
Use factory to create FOMEntry instance.

Modified:
    abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java

Modified: abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java?rev=1697770&r1=1697769&r2=1697770&view=diff
==============================================================================
--- abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
(original)
+++ abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
Tue Aug 25 21:17:38 2015
@@ -30,9 +30,9 @@ import java.io.StringWriter;
 
 import javax.activation.MimeType;
 
+import org.apache.abdera.Abdera;
 import org.apache.abdera.i18n.iri.IRI;
 import org.apache.abdera.model.Entry;
-import org.apache.abdera.parser.stax.FOMEntry;
 import org.apache.abdera.protocol.client.util.MultipartRelatedRequestEntity;
 import org.apache.abdera.util.MimeTypeHelper;
 import org.apache.commons.codec.binary.Base64;
@@ -44,7 +44,7 @@ public class MultipartRelatedRequestEnti
 
     @Test
     public void testMultipartFormat() throws IOException {
-        Entry entry = new FOMEntry();
+        Entry entry = Abdera.getInstance().newEntry();
         entry.setTitle("my image");
         entry.addAuthor("david");
         entry.setId("tag:apache.org,2008:234534344");



Mime
View raw message