Permalink
Browse files

update and remove obsolete tests, bump version to 2.5.0

  • Loading branch information...
1 parent 8e0ae72 commit f52c43d3d51f165af517a71f1ae30432b63eff0c @JPMoresmau committed Jan 21, 2013
Showing with 1,214 additions and 4,246 deletions.
  1. 0 docs/releasenotes/{net.sf.eclipsefp.haskell_2.4.3.txt → net.sf.eclipsefp.haskell_2.5.0.txt}
  2. +10 −10 net.sf.eclipsefp.haskell-feature/feature.xml
  3. +1 −1 net.sf.eclipsefp.haskell.browser/META-INF/MANIFEST.MF
  4. +1 −1 net.sf.eclipsefp.haskell.buildwrapper/META-INF/MANIFEST.MF
  5. +1 −1 net.sf.eclipsefp.haskell.core.test/META-INF/MANIFEST.MF
  6. +0 −48 ...lipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/compiler/CompilerManager_PDETest.java
  7. +0 −39 net.sf.eclipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/compiler/CompilerTestUtil.java
  8. +0 −135 ...askell.core.test/src/net/sf/eclipsefp/haskell/core/compiler/ListenableCompilerDecorator_Test.java
  9. +0 −23 net.sf.eclipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/compiler/StubCompiler.java
  10. +0 −93 ....haskell.core.test/src/net/sf/eclipsefp/haskell/core/internal/project/HaskellProject_PDETest.java
  11. +0 −101 ...fp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/internal/project/ProjectModel_PDETest.java
  12. +0 −85 ...e.test/src/net/sf/eclipsefp/haskell/core/internal/project/TestHaskellProjectMetaTest_PDETest.java
  13. +51 −56 ...psefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/internal/util/ResourceUtil_PDETest.java
  14. +0 −51 ...lipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/project/ImportLibrariesList_Test.java
  15. +0 −128 ...clipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/project/ImportLibraries_PDETest.java
  16. +0 −17 ....haskell.core.test/src/net/sf/eclipsefp/haskell/core/project/util/NullProjectPropertiesEvent.java
  17. +34 −44 net.sf.eclipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/test/AllTests_PDESuite.java
  18. +32 −29 net.sf.eclipsefp.haskell.core.test/src/net/sf/eclipsefp/haskell/core/test/AllTests_Suite.java
  19. +1 −1 net.sf.eclipsefp.haskell.core/META-INF/MANIFEST.MF
  20. +1 −27 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/HaskellCorePlugin.java
  21. +10 −195 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/compiler/CompilerManager.java
  22. +0 −41 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/compiler/DefaultHaskellCompiler.java
  23. +0 −54 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/compiler/ICompilerManager.java
  24. +0 −28 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/compiler/IHaskellCompiler.java
  25. +0 −53 ...clipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/compiler/ListenableCompilerDecorator.java
  26. +0 −234 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/internal/project/HaskellProject.java
  27. +0 −97 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/internal/project/Parser.java
  28. +0 −58 ...psefp.haskell.core/src/net/sf/eclipsefp/haskell/core/internal/project/ProjectPropertiesEvent.java
  29. +0 −130 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/internal/util/MultiplexedWriter.java
  30. +0 −241 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/project/HaskellProjectManager.java
  31. +0 −73 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/project/IHaskellProject.java
  32. +0 −26 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/project/IProjectPropertiesEvent.java
  33. +0 −19 ....eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/project/IProjectPropertiesListener.java
  34. +0 −204 net.sf.eclipsefp.haskell.core/src/net/sf/eclipsefp/haskell/core/project/ImportLibrariesList.java
  35. +1 −1 net.sf.eclipsefp.haskell.debug.core/META-INF/MANIFEST.MF
  36. +19 −19 net.sf.eclipsefp.haskell.debug.ui.test/META-INF/MANIFEST.MF
  37. +12 −13 ...c/net/sf/eclipsefp/haskell/debug/ui/internal/launch/ghci/GhciLaunchOperationDelegate_PDETest.java
  38. +1 −1 net.sf.eclipsefp.haskell.debug.ui/META-INF/MANIFEST.MF
  39. +0 −18 ...efp.haskell.ghccompiler.test/src/net/sf/eclipsefp/haskell/ghccompiler/test/AllTests_PDESuite.java
  40. +0 −75 ....ghccompiler.test/src/net/sf/eclipsefp/haskell/ghccompiler/test/core/GhcCompilerTest_PDETest.java
  41. +22 −22 net.sf.eclipsefp.haskell.ghccompiler/META-INF/MANIFEST.MF
  42. +27 −37 net.sf.eclipsefp.haskell.ghccompiler/plugin.xml
  43. +58 −58 ...ipsefp.haskell.ghccompiler/src/net/sf/eclipsefp/haskell/ghccompiler/core/GhcCabalContributor.java
  44. +0 −160 net.sf.eclipsefp.haskell.ghccompiler/src/net/sf/eclipsefp/haskell/ghccompiler/core/GhcCompiler.java
  45. +75 −75 ...p.haskell.ghccompiler/src/net/sf/eclipsefp/haskell/ghccompiler/ui/preferences/GhcCompilerTab.java
  46. +28 −17 net.sf.eclipsefp.haskell.hlint.test/.project
  47. +9 −0 net.sf.eclipsefp.haskell.hlint.test/META-INF/MANIFEST.MF
  48. +4 −0 net.sf.eclipsefp.haskell.hlint.test/build.properties
  49. +25 −0 net.sf.eclipsefp.haskell.hlint.test/src/net/sf/eclipsefp/haskell/hlint/AllTests_Suite.java
  50. +1 −1 net.sf.eclipsefp.haskell.hlint/META-INF/MANIFEST.MF
  51. +11 −0 net.sf.eclipsefp.haskell.style.test/.project
  52. +9 −0 net.sf.eclipsefp.haskell.style.test/META-INF/MANIFEST.MF
  53. +4 −0 net.sf.eclipsefp.haskell.style.test/build.properties
  54. +23 −0 net.sf.eclipsefp.haskell.style.test/src/net/sf/eclipsefp/haskell/style/AllTests_Suite.java
  55. +0 −8 net.sf.eclipsefp.haskell.test/.settings/org.eclipse.jdt.core.prefs
  56. +15 −12 net.sf.eclipsefp.haskell.test/META-INF/MANIFEST.MF
  57. +16 −17 net.sf.eclipsefp.haskell.test/src/net/sf/eclipsefp/test/AllTests_PDESuite.java
  58. +20 −17 net.sf.eclipsefp.haskell.test/src/net/sf/eclipsefp/test/AllTests_Suite.java
  59. +260 −270 net.sf.eclipsefp.haskell.ui.test/.settings/org.eclipse.jdt.core.prefs
  60. +2 −2 net.sf.eclipsefp.haskell.ui.test/META-INF/MANIFEST.MF
  61. +0 −15 net.sf.eclipsefp.haskell.ui.test/hs-src/AllTests_Suite.hs
  62. +0 −35 net.sf.eclipsefp.haskell.ui.test/hs-src/CodeFolding_Test.hs
  63. 0 net.sf.eclipsefp.haskell.ui.test/hs-src/res/code_folding/001
  64. +0 −3 net.sf.eclipsefp.haskell.ui.test/hs-src/res/code_folding/002
  65. +0 −10 net.sf.eclipsefp.haskell.ui.test/hs-src/res/code_folding/003
  66. +0 −7 net.sf.eclipsefp.haskell.ui.test/hs-src/res/code_folding/004
  67. +0 −6 net.sf.eclipsefp.haskell.ui.test/hs-src/res/code_folding/005
  68. +0 −13 net.sf.eclipsefp.haskell.ui.test/hs-src/runCoverage.sh
  69. +0 −7 net.sf.eclipsefp.haskell.ui.test/hs-src/runTests.sh
  70. +0 −202 ...askell.ui.test/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/Partitioning_PDETest.java
  71. +0 −101 ...kell.ui.test/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/SyntaxColoring_PDETest.java
  72. +1 −1 ...eclipsefp/haskell/ui/internal/editors/haskell/imports/{AnImportTest.java → AnImport_PDETest.java}
  73. +0 −39 ...i.test/src/net/sf/eclipsefp/haskell/ui/internal/preferences/HaskellPreferenceManager_PDETest.java
  74. +0 −119 ...ui.test/src/net/sf/eclipsefp/haskell/ui/internal/views/outline/provisionary/TreeElement_Test.java
  75. +44 −47 net.sf.eclipsefp.haskell.ui.test/src/net/sf/eclipsefp/haskell/ui/test/AllTests_PDESuite.java
  76. +27 −23 net.sf.eclipsefp.haskell.ui.test/src/net/sf/eclipsefp/haskell/ui/test/AllTests_Suite.java
  77. +1 −2 net.sf.eclipsefp.haskell.ui/META-INF/MANIFEST.MF
  78. +1 −2 net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/handlers/OpenDefinitionHandler.java
  79. +1 −1 ...clipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/scion/InstallExecutableRunnable.java
  80. +0 −123 ...p.haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/views/outline/provisionary/TreeElement.java
  81. +127 −129 ...ell.ui/src/net/sf/eclipsefp/haskell/ui/internal/views/projectexplorer/model/GHCSystemLibrary.java
  82. +0 −37 ...lipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/properties/ImportLibrariesContentProvider.java
  83. +2 −1 net.sf.eclipsefp.haskell.util.test/META-INF/MANIFEST.MF
  84. +26 −0 net.sf.eclipsefp.haskell.util.test/src/net/sf/eclipsefp/haskell/util/AllTests_Suite.java
  85. +108 −93 ...va → net.sf.eclipsefp.haskell.util.test/src/net/sf/eclipsefp/haskell/util/DispatchWriterTest.java
  86. +53 −53 ...nternal → net.sf.eclipsefp.haskell.util.test/src/net/sf/eclipsefp/haskell}/util/FileUtilTest.java
  87. +1 −1 net.sf.eclipsefp.haskell.util/META-INF/MANIFEST.MF
  88. +36 −8 net.sf.eclipsefp.haskell.util/src/net/sf/eclipsefp/haskell/util/DispatchWriter.java
  89. +1 −1 net.sf.eclipsefp.haskell.visual/META-INF/MANIFEST.MF
  90. +1 −1 net.sf.eclipsefp.haskell/META-INF/MANIFEST.MF
@@ -74,14 +74,14 @@ available at http://www.eclipse.org/legal/epl-v10.html.
id="net.sf.eclipsefp.haskell"
download-size="0"
install-size="0"
- version="2.4.0"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.core"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
@@ -95,7 +95,7 @@ available at http://www.eclipse.org/legal/epl-v10.html.
id="net.sf.eclipsefp.haskell.ui"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
@@ -109,21 +109,21 @@ available at http://www.eclipse.org/legal/epl-v10.html.
id="net.sf.eclipsefp.haskell.ghccompiler"
download-size="0"
install-size="0"
- version="2.2.4"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.debug.ui"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.debug.core"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
@@ -137,28 +137,28 @@ available at http://www.eclipse.org/legal/epl-v10.html.
id="net.sf.eclipsefp.haskell.util"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.browser"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.hlint"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
id="net.sf.eclipsefp.haskell.buildwrapper"
download-size="0"
install-size="0"
- version="2.4.3"
+ version="2.5.0"
unpack="false"/>
<plugin
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: net.sf.eclipsefp.haskell.browser; singleton:=true
-Bundle-Version: 2.4.3
+Bundle-Version: 2.5.0
Bundle-Localization: plugin
Bundle-Activator: net.sf.eclipsefp.haskell.browser.BrowserPlugin
Require-Bundle: org.eclipse.ui;bundle-version="3.2.0",
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: net.sf.eclipsefp.haskell.buildwrapper;singleton:=true
-Bundle-Version: 2.4.3
+Bundle-Version: 2.5.0
Bundle-Activator: net.sf.eclipsefp.haskell.buildwrapper.BuildWrapperPlugin
Bundle-Vendor: %bundleVendor
Bundle-Localization: plugin
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Plug-in for testing Haskell Core
Bundle-SymbolicName: net.sf.eclipsefp.haskell.core.test
-Bundle-Version: 2.4.0
+Bundle-Version: 2.5.0
Bundle-Vendor: eclipsefp.sourceforge.net
Require-Bundle: org.easymock;bundle-version="[2.2.0,3.0.0)",
org.junit4,
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2006 Thiago Arrais and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Thiago Arrais - Initial API and implementation
- *******************************************************************************/
-package net.sf.eclipsefp.haskell.core.compiler;
-
-import junit.framework.TestCase;
-import org.eclipse.core.resources.IFile;
-
-public class CompilerManager_PDETest extends TestCase {
-
- private ICompilerManager manager;
-
- @Override
- protected void setUp() throws Exception {
- manager = CompilerManager.getInstance();
- String compilerID = "stub";
- manager.installCompiler(compilerID, new StubCompiler());
- manager.selectCompiler(compilerID);
- }
-
- public void testNotifiesCompilerListeners() {
- ICompilerListener listener = CompilerTestUtil.createListener();
- manager.addCompilerListener(listener);
-
- manager.getCompiler().compile((IFile) null);
-
- CompilerTestUtil.assertReceivedExpectedOutput(listener);
- }
-
- public void testDoNotNotifyRemovedListeners() {
- ICompilerListener listener = CompilerTestUtil.createListener();
- manager.addCompilerListener(listener);
- manager.removeCompilerListener(listener);
-
- manager.getCompiler().compile((IFile) null);
-
- assertEquals(0, listener.createOutputWriter().toString().length());
- }
-
-}
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2006 Thiago Arrais and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Leif Frenzel - Initial API and implementation
- * Thiago Arrais - Reestructuring and documentation
- *******************************************************************************/
-package net.sf.eclipsefp.haskell.core.compiler;
-
-import static org.easymock.EasyMock.createMock;
-import static org.easymock.EasyMock.expect;
-import static org.easymock.EasyMock.expectLastCall;
-import static org.easymock.EasyMock.replay;
-import java.io.StringWriter;
-import junit.framework.Assert;
-
-public class CompilerTestUtil extends Assert {
-
- public static ICompilerListener createListener() {
- ICompilerListener listener = createMock(ICompilerListener.class);
- final StringWriter out = new StringWriter();
- expect(listener.createOutputWriter()).andReturn(out).anyTimes();
- listener.startingCompilation();
- expectLastCall().anyTimes();
- replay(listener);
- return listener;
- }
-
- public static void assertReceivedExpectedOutput(final ICompilerListener listener) {
- assertEquals(StubCompiler.EXPECTED_STANDARD_OUTPUT + StubCompiler.EXPECTED_STANDARD_ERROR,
- listener.createOutputWriter().toString());
- }
-
-}
@@ -1,135 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2006 Thiago Arrais and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Leif Frenzel - Initial API and implementation
- * Thiago Arrais - Reestructuring and documentation
- *******************************************************************************/
-package net.sf.eclipsefp.haskell.core.compiler;
-
-import static org.easymock.EasyMock.createMock;
-import static org.easymock.EasyMock.expect;
-import static org.easymock.EasyMock.expectLastCall;
-import static org.easymock.EasyMock.replay;
-import static org.easymock.EasyMock.verify;
-import java.io.StringWriter;
-import junit.framework.TestCase;
-import org.eclipse.core.resources.IFile;
-
-public class ListenableCompilerDecorator_Test extends TestCase {
-
- public void testRedirectsCompilerOutputToOneListener() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener listener = CompilerTestUtil.createListener();
-
- ListenableCompilerDecorator testedCompiler =
- new ListenableCompilerDecorator(realCompiler);
- testedCompiler.addListener(listener);
-
- testedCompiler.compile((IFile) null);
-
- CompilerTestUtil.assertReceivedExpectedOutput(listener);
- }
-
- public void testRedirectsCompilerOutputToMoreThanOneListener() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener fstListener = CompilerTestUtil.createListener();
- ICompilerListener sndListener = CompilerTestUtil.createListener();
- ICompilerListener trdListener = CompilerTestUtil.createListener();
-
- ListenableCompilerDecorator testedCompiler =
- new ListenableCompilerDecorator(realCompiler);
- testedCompiler.addListener(fstListener);
- testedCompiler.addListener(sndListener);
- testedCompiler.addListener(trdListener);
-
- testedCompiler.compile((IFile) null);
-
- CompilerTestUtil.assertReceivedExpectedOutput(fstListener);
- CompilerTestUtil.assertReceivedExpectedOutput(sndListener);
- CompilerTestUtil.assertReceivedExpectedOutput(trdListener);
- }
-
- public void testCompileMoreThanOnce() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener listener = CompilerTestUtil.createListener();
-
- ListenableCompilerDecorator testedCompiler =
- new ListenableCompilerDecorator(realCompiler);
- testedCompiler.addListener(listener);
-
- testedCompiler.compile((IFile) null);
- CompilerTestUtil.assertReceivedExpectedOutput(listener);
-
- ICompilerListener otherListener = CompilerTestUtil.createListener();
- testedCompiler.addListener(otherListener);
-
- testedCompiler.compile((IFile) null);
- CompilerTestUtil.assertReceivedExpectedOutput(otherListener);
- }
-
- public void testFiresCompilationStartingEvent() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener listener = createMockListener();
-
- listener.startingCompilation();
- expectLastCall().once();
-
- replay(listener);
-
- ListenableCompilerDecorator underTestCompiler =
- new ListenableCompilerDecorator(realCompiler);
- underTestCompiler.addListener(listener);
-
- underTestCompiler.compile((IFile) null);
-
- verify(listener);
- }
-
- public void testDoNotReportCompilationStartToRemovedListeners() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener listener = createMockListener();
-
- listener.startingCompilation();
- expectLastCall().once();
- replay(listener);
-
- ListenableCompilerDecorator underTestCompiler =
- new ListenableCompilerDecorator(realCompiler);
-
- underTestCompiler.addListener(listener);
- underTestCompiler.compile((IFile) null);
-
- underTestCompiler.removeListener(listener);
- underTestCompiler.compile((IFile) null);
-
- verify(listener);
- }
-
- public void testDoNotWriteToRemovedListenersStreams() {
- IHaskellCompiler realCompiler = new StubCompiler();
- ICompilerListener listener = CompilerTestUtil.createListener();
-
- ListenableCompilerDecorator testedCompiler =
- new ListenableCompilerDecorator(realCompiler);
- testedCompiler.addListener(listener);
- testedCompiler.removeListener(listener);
-
- testedCompiler.compile((IFile) null);
- assertEquals(0, listener.createOutputWriter().toString().length());
- }
-
- private ICompilerListener createMockListener() {
- ICompilerListener listener = createMock(ICompilerListener.class);
-
- final StringWriter out = new StringWriter();
- expect(listener.createOutputWriter()).andReturn(out).anyTimes();
- return listener;
- }
-
-}
@@ -1,23 +0,0 @@
-package net.sf.eclipsefp.haskell.core.compiler;
-
-import java.io.IOException;
-import java.io.Writer;
-import org.eclipse.core.resources.IFile;
-
-public class StubCompiler extends DefaultHaskellCompiler {
-
- public static final String EXPECTED_STANDARD_ERROR = "expected standard error output";
- public static final String EXPECTED_STANDARD_OUTPUT = "expected standard output";
-
- @Override
- public void compile(final IFile workingDir, final Writer output) {
- try {
- output.write(EXPECTED_STANDARD_OUTPUT);
- output.write(EXPECTED_STANDARD_ERROR);
- output.flush();
- } catch (IOException e) {
- // ignore error
- }
- }
-
-}
Oops, something went wrong.

0 comments on commit f52c43d

Please sign in to comment.