-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plug-in fragment as test plug-in for the UI (#68)
Added a fragment that connects to the host which is the UI. Removed the server shutdown at the SpotterServiceClientTest which caused trouble during testing phase. Added first unit test for Eclipse UI. Change-Id: I0d925510e6a75d5293025aab1ad9a84b9b80d6e3 Signed-off-by: Denis Knoepfle <[email protected]>
- Loading branch information
1 parent
1000cac
commit d62b499
Showing
8 changed files
with
211 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/bin | ||
/target | ||
/.classpath | ||
/.settings | ||
/.project | ||
.DS_Store | ||
/.prefs | ||
/src/META-INF/MANIFEST.MF | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: DynamicSpotter Eclipse UI Test | ||
Bundle-SymbolicName: org.spotter.eclipse.ui.test | ||
Bundle-Version: 0.0.1.qualifier | ||
Bundle-Vendor: SAP AG | ||
Fragment-Host: org.spotter.eclipse.ui;bundle-version="0.0.1" | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 | ||
Require-Bundle: org.junit;bundle-version="4.10.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright 2014 SAP AG | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
source.. = src/ | ||
bin.includes = META-INF/,\ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<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>org.spotter</groupId> | ||
<artifactId>org.spotter.parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<relativePath>../org.spotter.parent</relativePath> | ||
</parent> | ||
|
||
<artifactId>org.spotter.eclipse.ui.test</artifactId> | ||
<name>DynamicSpotter Eclipse UI Test</name> | ||
|
||
<packaging>eclipse-test-plugin</packaging> | ||
|
||
<properties> | ||
<tycho-version>0.20.0</tycho-version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<repositories> | ||
<repository> | ||
<id>kepler</id> | ||
<layout>p2</layout> | ||
<url>http://download.eclipse.org/releases/kepler</url> | ||
</repository> | ||
</repositories> | ||
|
||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-maven-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<extensions>true</extensions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>target-platform-configuration</artifactId> | ||
<configuration> | ||
<pomDependencies>consider</pomDependencies> | ||
<environments> | ||
<environment> | ||
<os>linux</os> | ||
<ws>gtk</ws> | ||
<arch>x86</arch> | ||
</environment> | ||
<environment> | ||
<os>linux</os> | ||
<ws>gtk</ws> | ||
<arch>x86_64</arch> | ||
</environment> | ||
<environment> | ||
<os>win32</os> | ||
<ws>win32</ws> | ||
<arch>x86</arch> | ||
</environment> | ||
<environment> | ||
<os>win32</os> | ||
<ws>win32</ws> | ||
<arch>x86_64</arch> | ||
</environment> | ||
<environment> | ||
<os>macosx</os> | ||
<ws>cocoa</ws> | ||
<arch>x86_64</arch> | ||
</environment> | ||
</environments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-surefire-plugin</artifactId> | ||
<version>${tycho-version}</version> | ||
<configuration> | ||
<useUIHarness>true</useUIHarness> | ||
<useUIThread>true</useUIThread> | ||
<providerHint>junit4</providerHint> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
|
||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.spotter</groupId> | ||
<artifactId>org.spotter.eclipse.ui</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
76 changes: 76 additions & 0 deletions
76
org.spotter.eclipse.ui.test/src/org/spotter/eclipse/ui/ActivatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package org.spotter.eclipse.ui; | ||
|
||
//import static org.junit.Assert.*; | ||
import junit.framework.Assert; | ||
|
||
import org.junit.Test; | ||
|
||
public class ActivatorTest { | ||
|
||
@Test | ||
public void testActivator() { | ||
Assert.assertEquals("org.spotter.eclipse.ui", Activator.PLUGIN_ID); | ||
} | ||
|
||
/*@Test | ||
public void testStartBundleContext() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testStopBundleContext() { | ||
fail("Not yet implemented"); | ||
}*/ | ||
|
||
@Test | ||
public void testGetDefault() { | ||
Activator activator = Activator.getDefault(); | ||
Assert.assertNotNull(activator); | ||
} | ||
|
||
/*@Test | ||
public void testGetClient() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testTestServiceStatus() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testGetNavigatorViewer() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testSetNavigatorViewer() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testGetProjectHistoryElements() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testSetProjectHistoryElements() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testGetSelectedProjects() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testSetSelectedProjects() { | ||
fail("Not yet implemented"); | ||
} | ||
@Test | ||
public void testGetImage() { | ||
fail("Not yet implemented"); | ||
}*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters