| /******************************************************************************* |
| * Copyright (c) 2008, 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.tests.internal.context.persistence.PersistenceUnitTestCase; |
| import org.eclipse.jpt.jpa.eclipselink.core.context.persistence.EclipseLinkPersistenceUnit; |
| import org.eclipse.jpt.jpa.eclipselink.core.internal.EclipseLinkJpaPlatformFactory; |
| |
| /** |
| * PersistenceUnitTestCase |
| */ |
| public abstract class EclipseLinkPersistenceUnitTestCase |
| extends PersistenceUnitTestCase |
| { |
| protected EclipseLinkPersistenceUnit subject; |
| |
| protected PropertyValueModel<EclipseLinkPersistenceUnit> subjectHolder; |
| |
| |
| protected EclipseLinkPersistenceUnitTestCase(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 getJpaPlatformID() { |
| return EclipseLinkJpaPlatformFactory.ID; |
| } |
| |
| @Override |
| protected EclipseLinkPersistenceUnit getPersistenceUnit() { |
| return (EclipseLinkPersistenceUnit) super.getPersistenceUnit(); |
| } |
| } |