/********************************************************************** * Copyright (c) 2005-2009 ant4eclipse project team. * * 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: * Nils Hartmann, Daniel Kasmeroglu, Gerd Wuetherich **********************************************************************/ package org.ant4eclipse.ant.pde.integration; import org.ant4eclipse.ant.pde.AbstractPdeBuildFileTest; import org.ant4eclipse.testframework.PdeProjectBuilder; /** * <p> * </p> * * @author Gerd Wütherich (gerd@gerd-wuetherich.de) */ public class FragmentTest extends AbstractPdeBuildFileTest { /** * <p> * </p> */ public void testFragment() { // create simple project PdeProjectBuilder pdeProjectBuilder = PdeProjectBuilder.getPreConfiguredPdeProjectBuilder("simpleproject1"); pdeProjectBuilder.withSourceClass("src", "de.simpleproject1.test.Test").finishClass(); pdeProjectBuilder.withSourceClass("src", "de.simpleproject1.test.Test2").finishClass(); pdeProjectBuilder.withSourceClass("src", "de.simpleproject1.test.Test3").finishClass(); pdeProjectBuilder.withBundleManifest().withBundleVersion("1.0.0").withFragmentHost( "org.eclipse.osgi;bundle-version=\"[3.2.0,4.0.0)\""); pdeProjectBuilder.createIn(getTestWorkspaceDirectory()); // execute test String expectedLog = "projectname: 'simpleproject1'R:\\\\software\\\\ide\\\\eclipse35\\\\plugins\\\\org.eclipse.osgi_3.5.0.v20090520.jar;simpleproject1\\\\bin"; expectLogMatches("buildWorkspace", getExpectedTargetPlatformLog() + expectedLog); } }