blob: f27f57f80423eaf6a54a3c77b4e33c7e64210b37 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2013 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which accompanies this distribution
* and is available at https://www.eclipse.org/legal/epl-2.0/.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.jaxb.core.tests.internal.resource.java;
import org.eclipse.jpt.common.core.resource.java.AnnotationDefinition;
import org.eclipse.jpt.common.core.resource.java.NestableAnnotationDefinition;
import org.eclipse.jpt.common.core.tests.internal.resource.java.JavaResourceModelTestCase;
import org.eclipse.jpt.jaxb.core.internal.jaxb21.GenericJaxb_2_1_PlatformDefinition;
import org.eclipse.jpt.jaxb.core.tests.internal.projects.JaxbProjectTestHarness;
public class JaxbJavaResourceModelTestCase
extends JavaResourceModelTestCase {
public JaxbJavaResourceModelTestCase(String name) {
super(name);
}
@Override
protected void setUp() throws Exception {
super.setUp();
this.javaProjectTestHarness.addJar(JaxbProjectTestHarness.jaxbJarName());
}
@Override
protected AnnotationDefinition[] annotationDefinitions() {
return GenericJaxb_2_1_PlatformDefinition.instance().getAnnotationDefinitions();
}
@Override
protected NestableAnnotationDefinition[] nestableAnnotationDefinitions() {
return GenericJaxb_2_1_PlatformDefinition.instance().getNestableAnnotationDefinitions();
}
}