blob: 5784d3dde67507e5fbb42c1311bfb5dda1d1f9cb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 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.jpa.eclipselink.core.tests.internal.context.persistence;
import org.eclipse.jpt.common.utility.internal.model.value.SimplePropertyValueModel;
import org.eclipse.jpt.common.utility.model.value.PropertyValueModel;
import org.eclipse.jpt.jpa.core.jpa2_1.JpaProject2_1;
import org.eclipse.jpt.jpa.core.tests.internal.context.persistence.PersistenceUnitTestCase;
import org.eclipse.jpt.jpa.eclipselink.core.context.persistence.EclipseLinkPersistenceUnit;
import org.eclipse.jpt.jpa.eclipselink.core.internal.EclipseLinkJpaPlatformFactory2_1;
/**
* EclipseLink2_5PersistenceUnitTestCase
*/
public abstract class EclipseLink2_5PersistenceUnitTestCase
extends PersistenceUnitTestCase
{
protected EclipseLinkPersistenceUnit subject;
protected PropertyValueModel<EclipseLinkPersistenceUnit> subjectHolder;
// ********** constructors **********
protected EclipseLink2_5PersistenceUnitTestCase(String name) {
super(name);
}
@Override
protected void setUp() throws Exception {
super.setUp();
this.subject = this.getPersistenceUnit();
this.subjectHolder = new SimplePropertyValueModel<EclipseLinkPersistenceUnit>(this.subject);
this.populatePu();
}
@Override
protected String getJpaFacetVersionString() {
return JpaProject2_1.FACET_VERSION_STRING;
}
@Override
protected String getJpaPlatformID() {
return EclipseLinkJpaPlatformFactory2_1.ID;
}
@Override
protected EclipseLinkPersistenceUnit getPersistenceUnit() {
return (EclipseLinkPersistenceUnit) super.getPersistenceUnit();
}
}