Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarkus Knauer2007-10-22 12:58:33 +0000
committerMarkus Knauer2007-10-22 12:58:33 +0000
commit86fbe2404b925234136d57d5f7274a8d7685fdc3 (patch)
treea93b344e5bf31d0c03d4cb3bb513e05856828970 /test
parent801d619336ae15f5fdc8d45a56bfd43f030df8c8 (diff)
downloadorg.eclipse.epp.packages-86fbe2404b925234136d57d5f7274a8d7685fdc3.tar.gz
org.eclipse.epp.packages-86fbe2404b925234136d57d5f7274a8d7685fdc3.tar.xz
org.eclipse.epp.packages-86fbe2404b925234136d57d5f7274a8d7685fdc3.zip
removing packagerConfigurationFolder from test XML
added checkConfiguration (without tests)
Diffstat (limited to 'test')
-rw-r--r--test/org.eclipse.epp.packaging.core.test/src/org/eclipse/epp/packaging/core/DummyPackagerConfiguration.java21
1 files changed, 17 insertions, 4 deletions
diff --git a/test/org.eclipse.epp.packaging.core.test/src/org/eclipse/epp/packaging/core/DummyPackagerConfiguration.java b/test/org.eclipse.epp.packaging.core.test/src/org/eclipse/epp/packaging/core/DummyPackagerConfiguration.java
index 1b8f285e..097103e3 100644
--- a/test/org.eclipse.epp.packaging.core.test/src/org/eclipse/epp/packaging/core/DummyPackagerConfiguration.java
+++ b/test/org.eclipse.epp.packaging.core.test/src/org/eclipse/epp/packaging/core/DummyPackagerConfiguration.java
@@ -16,6 +16,9 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.epp.packaging.core.configuration.IPackagerConfiguration;
import org.eclipse.epp.packaging.core.configuration.IPlatform;
import org.eclipse.update.core.VersionedIdentifier;
@@ -23,6 +26,9 @@ import org.eclipse.update.core.VersionedIdentifier;
/** Test class */
public class DummyPackagerConfiguration implements IPackagerConfiguration {
+ private static final String PACKAGER_CONFIGURATION_DIRECTORY
+ = "packagerConfiguration"; //$NON-NLS-1$
+
private URL siteUrl;
private IPlatform[] platforms;
private File baseDir;
@@ -36,10 +42,6 @@ public class DummyPackagerConfiguration implements IPackagerConfiguration {
return baseDir;
}
- public File getPackagerConfigurationFolder() {
- throw new UnsupportedOperationException( "Not yet implemented." ); //$NON-NLS-1$
- }
-
public void addRequiredFeature( final VersionedIdentifier identifier ) {
identifiers.add( identifier );
}
@@ -73,6 +75,12 @@ public class DummyPackagerConfiguration implements IPackagerConfiguration {
public void setBaseFolder( final String baseFolder ) {
this.baseDir = new File( baseFolder );
}
+
+ public File getPackagerConfigurationFolder() {
+ File result = new File( this.baseDir, PACKAGER_CONFIGURATION_DIRECTORY );
+ result.mkdir();
+ return result;
+ }
public File getRootFileFolder() {
throw new UnsupportedOperationException( "Not yet implemented." ); //$NON-NLS-1$
@@ -90,4 +98,9 @@ public class DummyPackagerConfiguration implements IPackagerConfiguration {
throw new UnsupportedOperationException( "Not yet implemented." ); //$NON-NLS-1$
}
+ public IStatus checkFeatures( IProgressMonitor monitor ) throws CoreException
+ {
+ throw new UnsupportedOperationException( "Not yet implemented." ); //$NON-NLS-1$
+ }
+
} \ No newline at end of file

Back to the top