Skip to content

Commit

Permalink
Fix test build bug / fix broken tests / make things consistent (#1360)
Browse files Browse the repository at this point in the history
* Make things consistent
* A few more things
* Fix test in .welcome.test bundle
* Fix facet metadata settings xml filename
* Pull in org.eclipse.ui.intro in .welcome test
* Add "Bundle-ClassPath: ." to MANIFEST.MF's
* Let's not expose constants for testing
  • Loading branch information
chanseokoh authored Feb 8, 2017
1 parent 717ab82 commit 1d739a6
Show file tree
Hide file tree
Showing 57 changed files with 77 additions and 34 deletions.
2 changes: 1 addition & 1 deletion eclipse/ide-target-platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>trunk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../../</relativePath>
</parent>
<artifactId>ide-target-platform.repo</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down
3 changes: 2 additions & 1 deletion features/com.google.licenses.apache_v2/pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>trunk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../../</relativePath>
</parent>
<artifactId>com.google.licenses.apache_v2</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Tests for Cloud Tools for Eclipse GPE Migration Support for App Engine Project Conversion
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.compat.test;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
</parent>
<artifactId>com.google.cloud.tools.eclipse.appengine.compat.test</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

<packaging>eclipse-test-plugin</packaging>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public void testRemoveGpeRuntimeAndFacets_runtimeRemoved() throws CoreException
@Test
public void testRemoveGpeRuntimeAndFacets_doNotLogIfMetadataFileDoesNotExist()
throws CoreException {
IFile metadataFile = gpeProject.getFile(GpeMigrator.FACETS_METADATA_FILE);
IFile metadataFile =
gpeProject.getFile(".settings/org.eclipse.wst.common.project.facet.core.xml");
metadataFile.delete(true, null);
assertFalse(metadataFile.exists());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse GPE Migration Support for App Engine Project Conversion
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.compat;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public class GpeMigrator {
private static final String WTP_METADATA_XSLT = "/xslt/wtpMetadata.xsl";

// FacetedProject.METADATA_FILE = ".settings/" + FacetCorePlugin.PLUGIN_ID + ".xml";
@VisibleForTesting
static final String FACETS_METADATA_FILE = ".settings/org.eclipse.wst.common.component.xml";
private static final String FACETS_METADATA_FILE =
".settings/org.eclipse.wst.common.project.facet.core.xml";

/**
* Removes various GPE-related remnants: classpath entries, nature, runtime, and facets. Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.deploy.ui;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.deploy;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse App Engine Facets
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.facets;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.libraries;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<useUIHarness>true</useUIHarness>
<product>org.eclipse.platform.ide</product>
</configuration>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<product>org.eclipse.platform.ide</product>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse App Engine Local Server
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.localserver;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<product>org.eclipse.platform.ide</product>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Maven-based App Engine Standard Project Generation
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.newproject.maven;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse App Engine New Project Generation
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.newproject;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down Expand Up @@ -42,5 +41,3 @@
</plugins>
</build>
</project>


Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.ui;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand All @@ -22,5 +21,3 @@
</plugins>
</build>
</project>


Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse App Engine JRE Whitelist Checks
Bundle-SymbolicName: com.google.cloud.tools.eclipse.appengine.validation;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Integration tests for App Engine functionality
Bundle-SymbolicName: com.google.cloud.tools.eclipse.integration.appengine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
1 change: 0 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.login.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Login Support
Bundle-SymbolicName: com.google.cloud.tools.eclipse.login;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Tests for Google Cloud Platform Preferences
Bundle-SymbolicName: com.google.cloud.tools.eclipse.preferences.test;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>trunk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../../</relativePath>
</parent>
<artifactId>com.google.cloud.tools.eclipse.preferences.test</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Preferences
Bundle-SymbolicName: com.google.cloud.tools.eclipse.preferences;singleton:=true
Expand Down
3 changes: 2 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.preferences/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -9,4 +10,4 @@
<artifactId>com.google.cloud.tools.eclipse.preferences</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Tests for Cloud Tools for Eclipse Project Selector Widget
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.projectselector;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Tests for Google Cloud SDK within the Eclipse IDE
Bundle-SymbolicName: com.google.cloud.tools.eclipse.sdk.test;singleton:=true
Expand Down
3 changes: 2 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.sdk.test/pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>trunk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../../</relativePath>
</parent>
<artifactId>com.google.cloud.tools.eclipse.sdk.test</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down
1 change: 0 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.sdk.ui.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse User Interface for the Cloud SDK
Bundle-SymbolicName: com.google.cloud.tools.eclipse.sdk.ui;singleton:=true
Expand Down
3 changes: 2 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.sdk.ui/pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>trunk</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../..</relativePath>
<relativePath>../../</relativePath>
</parent>
<artifactId>com.google.cloud.tools.eclipse.sdk.ui</artifactId>
<version>0.1.0-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Support for Google Cloud SDK
Bundle-SymbolicName: com.google.cloud.tools.eclipse.sdk;singleton:=true
Expand Down
1 change: 1 addition & 0 deletions plugins/com.google.cloud.tools.eclipse.sdk/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Test Helpers for SWTBot
Bundle-SymbolicName: com.google.cloud.tools.eclipse.swtbot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.test.logback;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.test.util;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.google.cloud.tools.eclipse.ui.util;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Usage Tracker Tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Manifest-Version: 1.0
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Name: Cloud Tools for Eclipse Analytics
Bundle-SymbolicName: com.google.cloud.tools.eclipse.usagetracker;singleton:=true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
Expand Down
1 change: 0 additions & 1 deletion plugins/com.google.cloud.tools.eclipse.util.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<packaging>eclipse-test-plugin</packaging>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down
Loading

0 comments on commit 1d739a6

Please sign in to comment.