abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r416770 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/factory/ core/src/main/java/org/apache/abdera/model/ core/src/main/java/org/apache/abdera/util/ examples/src/main/java/org/apache/abdera/examples/simple/ parser...
Date Fri, 23 Jun 2006 17:27:29 GMT
Author: jmsnell
Date: Fri Jun 23 10:27:27 2006
New Revision: 416770

URL: http://svn.apache.org/viewvc?rev=416770&view=rev
Log:
In the process of moving the Feed thread stuff out to an extensions module.

* Remove the InReplyTo and Total interfaces from abdera.core
* Remove ThreadHelper from abdera.util
* Remove the related methods from Factory, Entry, FOMFactory and FOMEntry
* Remove the InReplyTo and Total from tests and examples

Next step is to check in the new abdera.extensions module

Removed:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/InReplyTo.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Total.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/ThreadHelper.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMInReplyTo.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMTotal.java
Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/Create.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/factory/Factory.java
Fri Jun 23 10:27:27 2006
@@ -17,7 +17,6 @@
 */
 package org.apache.abdera.factory;
 
-import javax.activation.MimeTypeParseException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.Calendar;
@@ -42,14 +41,12 @@
 import org.apache.abdera.model.Feed;
 import org.apache.abdera.model.Generator;
 import org.apache.abdera.model.IRI;
-import org.apache.abdera.model.InReplyTo;
 import org.apache.abdera.model.Link;
 import org.apache.abdera.model.Person;
 import org.apache.abdera.model.Service;
 import org.apache.abdera.model.Source;
 import org.apache.abdera.model.StringElement;
 import org.apache.abdera.model.Text;
-import org.apache.abdera.model.Total;
 import org.apache.abdera.model.Workspace;
 import org.apache.abdera.parser.Parser;
 import org.apache.abdera.util.ServiceUtil;
@@ -441,34 +438,6 @@
   
   Div newDiv(Base parent);
 
-  InReplyTo newInReplyTo();
-  
-  InReplyTo newInReplyTo(URI ref);
-  
-  InReplyTo newInReplyTo(String ref) throws URISyntaxException;
-  
-  InReplyTo newInReplyTo(URI ref, URI source, URI href, MimeType type);
-  
-  InReplyTo newInReplyTo(String ref, String source, String href, String type) throws URISyntaxException,
MimeTypeParseException;
-  
-  InReplyTo newInReplyTo(Element parent);
-  
-  InReplyTo newInReplyTo(URI ref, Element parent);
-  
-  InReplyTo newInReplyTo(String ref, Element parent) throws URISyntaxException;
-  
-  InReplyTo newInReplyTo(URI ref, URI source, URI href, MimeType type, Element parent);
-  
-  InReplyTo newInReplyTo(String ref, String source, String href, String type, Element parent)
throws URISyntaxException, MimeTypeParseException;
-
-  Total newTotal();
-  
-  Total newTotal(int totalResponse);
-  
-  Total newTotal(Element parent);
-  
-  Total newTotal(int totalResponse, Element parent);
-  
   void registerAsSimpleExtension(QName qname);
   
   <T extends Base>void registerAlternative(Class<T> base, Class<? extends
T> alternative);

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Entry.java Fri
Jun 23 10:27:27 2006
@@ -666,22 +666,4 @@
    */
   Link getEditLink();
   
-  void addInReplyTo(InReplyTo replyTo);
-  
-  InReplyTo addInReplyTo();
-  
-  InReplyTo addInReplyTo(Entry ref);
-  
-  InReplyTo addInReplyTo(URI ref);
-  
-  InReplyTo addInReplyTo(String ref) throws URISyntaxException;
-  
-  InReplyTo addInReplyTo(URI ref, URI source, URI href, MimeType type);
-  
-  InReplyTo addInReplyTo(String ref, String source, String href, String type) throws URISyntaxException,
MimeTypeParseException;
-  
-  InReplyTo getInReplyTo();
-  
-  List<InReplyTo> getInReplyTos();
-  
 }

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/AbstractXPath.java
Fri Jun 23 10:27:27 2006
@@ -36,7 +36,6 @@
     namespaces.put(Constants.PREFIX, Constants.ATOM_NS);
     namespaces.put(Constants.APP_PREFIX, Constants.APP_NS);
     namespaces.put(Constants.CONTROL_PREFIX, Constants.CONTROL_NS);
-    namespaces.put(Constants.THR_PREFIX, Constants.THR_NS);
     return namespaces;
   }
 

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/Constants.java Fri
Jun 23 10:27:27 2006
@@ -139,21 +139,4 @@
   public static final String YES   = "yes";
   public static final String NO    = "no";
   
-  // Atom Thread Extensions Support
-  public static final String THR_NS = "http://purl.org/syndication/thread/1.0";
-  public static final String LN_INREPLYTO = "in-reply-to";
-  public static final String LN_REF = "ref";
-  public static final String LN_COUNT = "count";
-  public static final String LN_WHEN = "when";
-  public static final String LN_TOTAL = "total";
-  public static final String THR_PREFIX = "thr";
-  public static final QName IN_REPLY_TO = new QName(THR_NS, LN_INREPLYTO, THR_PREFIX);
-  public static final QName THRCOUNT = new QName(THR_NS, LN_COUNT, THR_PREFIX);
-  /** @deprecated Use Constants.THRUPDATED */
-  public static final QName THRWHEN = new QName(THR_NS, LN_WHEN, THR_PREFIX);
-  public static final QName THRUPDATED = new QName(THR_NS, LN_UPDATED, THR_PREFIX);
-  public static final QName THRTOTAL = new QName(THR_NS, LN_TOTAL, THR_PREFIX);
-  public static final QName THRREF = new QName(LN_REF);
-  public static final QName THRSOURCE = new QName(LN_SOURCE);
- 
 }

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/Create.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/Create.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/Create.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/Create.java
Fri Jun 23 10:27:27 2006
@@ -55,7 +55,6 @@
     entry2.setId("urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b");
     entry2.setUpdated(new Date());
     entry2.setSummary("A response");
-    entry2.addInReplyTo(entry);
     
     Entry entry3 = feed.addEntry();
     entry3.setTitle("<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Test</p></div>",
Text.Type.XHTML);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Fri Jun 23 10:27:27 2006
@@ -297,7 +297,8 @@
   public void writeTo(OutputStream out) throws IOException {
     try {
       OMOutputFormat outputFormat = new OMOutputFormat();
-      outputFormat.setCharSetEncoding(getDocument().getCharset());
+      if (getDocument() != null)
+        outputFormat.setCharSetEncoding(getDocument().getCharset());
       MTOMXMLStreamWriter omwriter = 
         new MTOMXMLStreamWriter(out, outputFormat);
       internalSerialize(omwriter, true);

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMEntry.java
Fri Jun 23 10:27:27 2006
@@ -38,7 +38,6 @@
 import org.apache.abdera.model.Entry;
 import org.apache.abdera.model.ExtensionElement;
 import org.apache.abdera.model.IRI;
-import org.apache.abdera.model.InReplyTo;
 import org.apache.abdera.model.Link;
 import org.apache.abdera.model.Person;
 import org.apache.abdera.model.Source;
@@ -871,75 +870,6 @@
   public Text.Type getTitleType() {
     Text text = getTitleElement();
     return (text != null) ? text.getTextType() : null;
-  }
-
-  public void addInReplyTo(InReplyTo replyTo) {
-    addChild((OMElement)replyTo);
-  }
-  
-  public InReplyTo addInReplyTo() {
-    FOMFactory fomfactory = (FOMFactory) this.factory;
-    InReplyTo replyTo = fomfactory.newInReplyTo(this);
-    return replyTo;
-  }
-
-  public InReplyTo addInReplyTo(Entry ref) {
-    if (ref.equals(this)) return null;
-    InReplyTo irt = addInReplyTo(); 
-    try {
-      irt.setRef(ref.getId());
-      Link altlink = ref.getAlternateLink();
-      if (altlink != null) {
-        irt.setHref(altlink.getResolvedHref());
-        if (altlink.getMimeType() != null) 
-          irt.setMimeType(altlink.getMimeType());
-      }
-      Source src = ref.getSource();
-      if (src != null) {
-        Link selflink = src.getSelfLink();
-        if (selflink != null)
-          irt.setSource(selflink.getResolvedHref());
-      }
-    } catch (Exception e) {}
-    return irt;
-  }
-
-  public InReplyTo addInReplyTo(URI ref) {
-    FOMFactory fomfactory = (FOMFactory) this.factory;
-    return fomfactory.newInReplyTo(ref, this);
-  }
-
-  public InReplyTo addInReplyTo(String ref) throws URISyntaxException {
-    FOMFactory fomfactory = (FOMFactory) this.factory;
-    return fomfactory.newInReplyTo(ref, this);
-  }
-
-  public InReplyTo addInReplyTo(
-    URI ref, 
-    URI source, 
-    URI href, 
-    MimeType type) {
-      FOMFactory fomfactory = (FOMFactory) this.factory;
-      return fomfactory.newInReplyTo(ref, source, href, type, this);
-  }
-
-  public InReplyTo addInReplyTo(
-    String ref, 
-    String source, 
-    String href, 
-    String type) 
-      throws URISyntaxException, 
-             MimeTypeParseException {
-    FOMFactory fomfactory = (FOMFactory) this.factory;
-    return fomfactory.newInReplyTo(ref, source, href, type, this);
-  }
-
-  public InReplyTo getInReplyTo() {
-    return (InReplyTo) getFirstChildWithName(IN_REPLY_TO);
-  }
-
-  public List<InReplyTo> getInReplyTos() {
-    return _getChildrenAsSet(IN_REPLY_TO);
   }
 
 }

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Fri Jun 23 10:27:27 2006
@@ -17,8 +17,6 @@
 */
 package org.apache.abdera.parser.stax;
  
-import javax.activation.MimeTypeParseException;
-
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.ArrayList;
@@ -50,14 +48,12 @@
 import org.apache.abdera.model.Feed;
 import org.apache.abdera.model.Generator;
 import org.apache.abdera.model.IRI;
-import org.apache.abdera.model.InReplyTo;
 import org.apache.abdera.model.Link;
 import org.apache.abdera.model.Person;
 import org.apache.abdera.model.Service;
 import org.apache.abdera.model.Source;
 import org.apache.abdera.model.StringElement;
 import org.apache.abdera.model.Text;
-import org.apache.abdera.model.Total;
 import org.apache.abdera.model.Workspace;
 import org.apache.abdera.model.Content.Type;
 import org.apache.abdera.parser.Parser;
@@ -104,8 +100,6 @@
     qclasses.put(URI, FOMIRI.class);
     qclasses.put(CONTROL, FOMControl.class);
     qclasses.put(DIV, FOMDiv.class);
-    qclasses.put(IN_REPLY_TO, FOMInReplyTo.class);
-    qclasses.put(THRTOTAL, FOMTotal.class);
   }
   
   private List<QName> simpleExtensions = null;
@@ -1356,115 +1350,6 @@
       return _newInstance(FOMElement.class, qname, parent, parserWrapper);
   }
 
-  public Total newTotal() {
-    return newTotal((Element)null);
-  }
-  
-  public Total newTotal(int totalResponse) {
-    return newTotal(totalResponse, null);
-  }
-  
-  public Total newTotal(Element parent) {
-    return _newInstance(FOMTotal.class, (OMContainer)parent);
-  }
-  
-  public Total newTotal(int totalResponse, Element parent) {
-    Total total = newTotal(parent);
-    total.setValue(totalResponse);
-    return total;
-  }
-  
-  public Total newTotal(
-      QName qname, 
-      OMContainer parent, 
-      OMXMLParserWrapper parserWrapper) {
-    return _newInstance(FOMTotal.class, qname, parent, parserWrapper);
-  }
-  
-  public InReplyTo newInReplyTo() {
-    return newInReplyTo((Element)null);
-  }
-  
-  public InReplyTo newInReplyTo(URI ref) {
-    return newInReplyTo(ref, null);
-  }
-  
-  public InReplyTo newInReplyTo(
-    String ref) 
-      throws URISyntaxException {
-    return newInReplyTo(ref, null);
-  }
-  
-  public InReplyTo newInReplyTo(
-    URI ref, 
-    URI source, 
-    URI href, 
-    MimeType type) {
-      return newInReplyTo(ref, source, href, type, null);
-  }
-  
-  public InReplyTo newInReplyTo(
-    String ref, 
-    String source, 
-    String href, 
-    String type) 
-      throws URISyntaxException, 
-             MimeTypeParseException {
-    return newInReplyTo(ref, source, href, type, null);
-  }
-  
-  public InReplyTo newInReplyTo(
-    QName qname,
-    OMContainer parent, 
-    OMXMLParserWrapper parserWrapper) {
-      return _newInstance(FOMInReplyTo.class, qname, parent, parserWrapper);
-  }
-  
-  public InReplyTo newInReplyTo(Element parent) {
-    return _newInstance(FOMInReplyTo.class, (OMContainer)parent);
-  }
-
-  public InReplyTo newInReplyTo(URI ref, Element parent) {
-    InReplyTo replyTo = newInReplyTo(parent);
-    if (ref != null) replyTo.setRef(ref);
-    return replyTo;
-  }
-
-  public InReplyTo newInReplyTo(String ref, Element parent) throws URISyntaxException {
-    return (ref != null) ? newInReplyTo(new URI(ref), parent) : newInReplyTo(parent);
-  }
-
-  public InReplyTo newInReplyTo(
-    URI ref, 
-    URI source, 
-    URI href, 
-    MimeType type, 
-    Element parent) {
-      InReplyTo replyTo = newInReplyTo(parent);
-      if (ref != null) replyTo.setRef(ref);
-      if (source != null) replyTo.setSource(source);
-      if (href != null) replyTo.setHref(href);
-      if (type != null) replyTo.setMimeType(type);
-      return replyTo;
-  }
-
-  public InReplyTo newInReplyTo(
-    String ref, 
-    String source, 
-    String href, 
-    String type, 
-    Element parent) 
-      throws URISyntaxException, 
-             MimeTypeParseException {
-    return newInReplyTo(
-      (ref != null) ? new URI(ref) : null,
-      (source != null) ? new URI(source) : null,
-      (href != null) ? new URI(href) : null,
-      (type != null) ? new MimeType(type) : null,
-      parent
-    );
-  }
-  
   private boolean isContent(QName qname) {
     return CONTENT.equals(qname);
   }

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java?rev=416770&r1=416769&r2=416770&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
(original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Fri Jun 23 10:27:27 2006
@@ -51,14 +51,12 @@
 import org.apache.abdera.model.Feed;
 import org.apache.abdera.model.Generator;
 import org.apache.abdera.model.IRI;
-import org.apache.abdera.model.InReplyTo;
 import org.apache.abdera.model.Link;
 import org.apache.abdera.model.Person;
 import org.apache.abdera.model.Service;
 import org.apache.abdera.model.Source;
 import org.apache.abdera.model.StringElement;
 import org.apache.abdera.model.Text;
-import org.apache.abdera.model.Total;
 import org.apache.abdera.model.Workspace;
 import org.apache.abdera.parser.Parser;
 import org.apache.abdera.parser.ParserOptions;
@@ -137,9 +135,8 @@
     entry2.addLink("/2003/12/13/atom03/1");
     entry2.setId("urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b", false);
     entry2.setSummary("A response");
-    entry2.addInReplyTo(entry);
     
-    String compare = "<?xml version='1.0' encoding='UTF-8'?><a:feed xmlns:a=\"http://www.w3.org/2005/Atom\"
xml:base=\"http://example.org\" xml:lang=\"en-US\"><a:title type=\"text\">Example
Feed</a:title><a:link href=\"http://example.org/\" /><a:author><a:name>John
Doe</a:name></a:author><a:id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</a:id><a:contributor><a:name>Bob
Jones</a:name></a:contributor><a:category term=\"example\" /><a:entry><a:title
type=\"text\">re: Atom-Powered Robots Run Amok</a:title><a:link href=\"/2003/12/13/atom03/1\"
/><a:id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b</a:id><a:summary type=\"text\">A
response</a:summary><thr:in-reply-to xmlns:thr=\"http://purl.org/syndication/thread/1.0\"
href=\"http://example.org/2003/12/13/atom03\" ref=\"urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a\"
/></a:entry><a:entry><a:title type=\"text\">Atom-Powered Robots Run Amok</a:title><a:link
href=\"http://example.org/2003/12/13/atom03\" /><a:id>urn:uuid:1225c695-cfb
 8-4ebb-aaaa-80da344efa6a</a:id><a:summary type=\"text\">Some text.</a:summary></a:entry></a:feed>";
+    String compare = "<?xml version='1.0' encoding='UTF-8'?><a:feed xmlns:a=\"http://www.w3.org/2005/Atom\"
xml:base=\"http://example.org\" xml:lang=\"en-US\"><a:title type=\"text\">Example
Feed</a:title><a:link href=\"http://example.org/\" /><a:author><a:name>John
Doe</a:name></a:author><a:id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</a:id><a:contributor><a:name>Bob
Jones</a:name></a:contributor><a:category term=\"example\" /><a:entry><a:title
type=\"text\">re: Atom-Powered Robots Run Amok</a:title><a:link href=\"/2003/12/13/atom03/1\"
/><a:id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b</a:id><a:summary type=\"text\">A
response</a:summary></a:entry><a:entry><a:title type=\"text\">Atom-Powered
Robots Run Amok</a:title><a:link href=\"http://example.org/2003/12/13/atom03\" /><a:id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</a:id><a:summary
type=\"text\">Some text.</a:summary></a:entry></a:feed>";
     
     ByteArrayOutputStream out = new ByteArrayOutputStream(512);
     feed.getDocument().writeTo(out);
@@ -423,23 +420,6 @@
     assertEquals(iri.getValue().toString(), "http://example.org/foo");
     iri = factory.newIRIElement(Constants.ID, new URI("http://example.org/foo"), null);
     assertEquals(iri.getValue().toString(), "http://example.org/foo");
-    InReplyTo inreplyto = factory.newInReplyTo();
-    assertNotNull(inreplyto);
-    inreplyto = factory.newInReplyTo("http://example.org/foo");
-    assertNotNull(inreplyto);
-    assertEquals(inreplyto.getRef().toString(), "http://example.org/foo");
-    inreplyto = factory.newInReplyTo(new URI("http://example.org/foo"));
-    assertEquals(inreplyto.getRef().toString(), "http://example.org/foo");
-    inreplyto = factory.newInReplyTo("http://example.org/foo", "http://example.org/foo",
"http://example.org/foo", "text/foo");
-    assertEquals(inreplyto.getRef().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getSource().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getHref().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getMimeType().toString(), "text/foo");
-    inreplyto = factory.newInReplyTo(new URI("http://example.org/foo"), new URI("http://example.org/foo"),
new URI("http://example.org/foo"), new MimeType("text/foo"));
-    assertEquals(inreplyto.getRef().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getSource().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getHref().toString(), "http://example.org/foo");
-    assertEquals(inreplyto.getMimeType().toString(), "text/foo");
     Link link = factory.newLink();
     assertNotNull(link);
     link = factory.newLink("http://example.org/foo", "a", new MimeType("text/foo"), "b",
"en", 10);
@@ -534,10 +514,6 @@
     content = factory.newContent("a",Content.Type.TEXT);
     assertEquals(content.getValue(), "a");
     assertEquals(content.getContentType(), Content.Type.TEXT);
-    Total total = factory.newTotal();
-    assertNotNull(total);
-    total = factory.newTotal(10);
-    assertEquals(total.getValue(), 10);
     now = new Date();
     dateTime = factory.newUpdated(AtomDate.valueOf(now));
     assertEquals(dateTime.getDate(), now);
@@ -623,7 +599,6 @@
     entry2.addLink("/2003/12/13/atom03/1");
     entry2.setId("urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b", false);
     entry2.setSummary("A response");
-    entry2.addInReplyTo(entry);
     
     ByteArrayOutputStream out = new ByteArrayOutputStream();
     feed.getDocument().writeTo(out);
@@ -649,8 +624,6 @@
     assertEquals(entry.getAlternateLink().getResolvedHref().toString(), "http://example.org/2003/12/13/atom03/1");
     assertEquals(entry.getId().toString(), "urn:uuid:1225c695-cfb8-4ebb-aaaa-80cb323feb5b");
     assertEquals(entry.getSummary(), "A response");
-    assertNotNull(entry.getInReplyTo());
-    assertEquals(entry.getInReplyTo().getRef().toString(), "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a");
     
     entry = entry.getNextSibling(Constants.ENTRY);
     assertNotNull(entry);



Mime
View raw message