1 7 package com.sun.syndication.unittest; 8 9 10 11 12 16 public abstract class SyndFeedTest extends FeedTest { 17 private String _prefix = null; 18 19 protected SyndFeedTest(String feedType) { 20 this(feedType,feedType+".xml"); 21 } 22 23 protected SyndFeedTest(String feedType,String feedFileName) { 24 super(feedFileName); 25 _prefix = feedType; 26 } 27 28 protected String getPrefix() { 29 return _prefix; 30 } 31 32 protected void assertProperty(String property, String value) { 33 assertEquals(property,getPrefix() + "." + value); 34 } 35 36 public void testType() throws Exception { 37 assertEquals(getCachedSyndFeed().getFeedType(),getPrefix()); 38 } 39 40 41 157 171 181 256 257 258 261 protected void tearDown() throws Exception { 262 super.tearDown(); 263 } 264 265 266 267 } 268 | Popular Tags |