Initializing the Plugin Manager in the workspace#

Usually, the main application take care of loading all required plugins at start-up. When writing a junit test, you must initialize the plugins yourself by

InitPluginManager.init();

This method needs to have a file output.txt in the target folder. This file can be generated by maven using the following plugin in the build tag:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-dependency-plugin</artifactId>
	<executions>
		<execution>
			<id>copy-dependencies</id>
			<phase>test-compile</phase>
			<goals>
				<goal>build-classpath</goal>
			</goals>
	    		<configuration>
				<outputDirectory>target/dependencies</outputDirectory>
				<overWriteReleases>false</overWriteReleases>
				<overWriteSnapshots>false</overWriteSnapshots>
				<overWriteIfNewer>true</overWriteIfNewer>
				<pathSeparator>;</pathSeparator>
				<outputFile>target/dependencies/output.txt</outputFile>
			</configuration>
		</execution>
	</executions>
</plugin>