roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r1070313 - /roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java
Date Sun, 13 Feb 2011 22:13:32 GMT
Author: snoopdave
Date: Sun Feb 13 22:13:32 2011
New Revision: 1070313

URL: http://svn.apache.org/viewvc?rev=1070313&view=rev
Log:
Another attempt to fix text failure that occurs only on the ASF Husdon server

Modified:
    roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java

Modified: roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java?rev=1070313&r1=1070312&r2=1070313&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java
(original)
+++ roller/trunk/weblogger-business/src/test/java/org/apache/roller/weblogger/business/MediaFileTest.java
Sun Feb 13 22:13:32 2011
@@ -447,11 +447,14 @@ public class MediaFileTest extends TestC
 	            mf.setContentType("image/jpeg");
 	            rootDirectory.getMediaFiles().add(mf);
 	
+	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
+
 	            MediaFileTag tag = new MediaFileTag("work", mf);
-	            Set<MediaFileTag> tags = mf.getTags();
+	            Set<MediaFileTag> tags = new HashSet<MediaFileTag>();
 	            tags.add(tag);
 	            mf.setTags(tags);
-	
+	            mfMgr.updateMediaFile(testWeblog, mf);
+	            
 	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
 	            TestUtils.endSession(true);
 	            id1 = mf.getId();
@@ -477,12 +480,14 @@ public class MediaFileTest extends TestC
 	            mf.setContentType("image/jpeg");
 	            rootDirectory.getMediaFiles().add(mf);
 	
+	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
+
 	            MediaFileTag tag = new MediaFileTag("home", mf);
-	            Set<MediaFileTag> tags = mf.getTags();
+	            Set<MediaFileTag> tags = new HashSet<MediaFileTag>();
 	            tags.add(tag);
 	            mf.setTags(tags);
+	            mfMgr.updateMediaFile(testWeblog, mf);
 	
-	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
 	            TestUtils.endSession(true);
 	            id2 = mf.getId();
 	            assertNotNull(mf.getId());
@@ -507,12 +512,14 @@ public class MediaFileTest extends TestC
 	            mf.setContentType("image/jpeg");
 	            rootDirectory.getMediaFiles().add(mf);
 	
+	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
+
 	            MediaFileTag tag = new MediaFileTag("home", mf);
-	            Set<MediaFileTag> tags = mf.getTags();
+	            Set<MediaFileTag> tags = new HashSet<MediaFileTag>();
 	            tags.add(tag);
 	            mf.setTags(tags);
+	            mfMgr.updateMediaFile(testWeblog, mf);
 	
-	            mfMgr.createMediaFile(testWeblog, mf, new RollerMessages());
 	            TestUtils.endSession(true);
 	            id3 = mf.getId();
 	            assertNotNull(mf.getId());



Mime
View raw message