| CODENOTIFIER | HelpYou are not signed inSign in |
Project: RadRails1.0
Revision: 14212
Author: cwilliams
Date: 23 Jun 2008 10:35:29
Changes:fix broken test
Files:| ... | ...@@ -3,12 +3,14 @@ | |
| 3 | 3 | import junit.framework.Test; |
| 4 | 4 | import junit.framework.TestSuite; |
| 5 | 5 | |
| 6 | import com.aptana.rdt.internal.core.gems.AllTests; | |
| 6 | 7 | import com.aptana.rdt.internal.core.parser.warnings.TS_ParserWarnings; |
| 7 | 8 | |
| 8 | 9 | public class TS_Aptana { |
| 9 | 10 | public static Test suite() { |
| 10 | 11 | TestSuite suite = new TestSuite("Test for com.aptana.rdt"); |
| 11 | 12 | suite.addTest(TS_ParserWarnings.suite()); |
| 13 | suite.addTest(AllTests.suite()); | |
| 12 | 14 | return suite; |
| 13 | 15 | } |
| 14 | 16 | } |
| ... | ...@@ -0,0 +1,18 @@ | |
| 1 | package com.aptana.rdt.internal.core.gems; | |
| 2 | ||
| 3 | import junit.framework.Test; | |
| 4 | import junit.framework.TestSuite; | |
| 5 | ||
| 6 | public class AllTests { | |
| 7 | ||
| 8 | public static Test suite() { | |
| 9 | TestSuite suite = new TestSuite( | |
| 10 | "Test for com.aptana.rdt.internal.core.gems"); | |
| 11 | //$JUnit-BEGIN$ | |
| 12 | suite.addTestSuite(GemParserTest.class); | |
| 13 | suite.addTestSuite(GemManagerTest.class); | |
| 14 | //$JUnit-END$ | |
| 15 | return suite; | |
| 16 | } | |
| 17 | ||
| 18 | } |
| ... | ...@@ -172,7 +172,7 @@ | |
| 172 | 172 | out.flush(); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | private Set<Gem> loadRemoteGems(String gemIndexUrl, IProgressMonitor monitor) { | |
| 175 | protected Set<Gem> loadRemoteGems(String gemIndexUrl, IProgressMonitor monitor) { | |
| 176 | 176 | if (!isRubyGemsInstalled()) return new HashSet<Gem>(); |
| 177 | 177 | |
| 178 | 178 | GemParser parser = new GemParser(); |
| ... | ...@@ -6,6 +6,8 @@ | |
| 6 | 6 | |
| 7 | 7 | import junit.framework.TestCase; |
| 8 | 8 | |
| 9 | import org.eclipse.core.runtime.IProgressMonitor; | |
| 10 | ||
| 9 | 11 | import com.aptana.rdt.core.gems.Gem; |
| 10 | 12 | |
| 11 | 13 | public class GemManagerTest extends TestCase { |
| ... | ...@@ -13,8 +15,8 @@ | |
| 13 | 15 | public void testRemoteGemCacheCompressedToLogicalGems() throws Exception { |
| 14 | 16 | GemManager manager = new GemManager() { |
| 15 | 17 | |
| 16 | @Override | |
| 17 | protected Set<Gem> loadLocalCache(File file) { | |
| 18 | protected Set<Gem> loadRemoteGems(String gemIndexUrl, | |
| 19 | IProgressMonitor monitor) { | |
| 18 | 20 | Set<Gem> gems = new HashSet<Gem>(); |
| 19 | 21 | gems.add(new Gem("test", "1.0.0", "testing", "ruby")); |
| 20 | 22 | gems.add(new Gem("test", "2.0.0", "testing", "ruby")); |