summaryrefslogtreecommitdiffstats
path: root/sandbox/old/contrib/persistence/common/src/test/java/org/apache/tuscany/service/persistence/common/PersistenceUnitTestCase.java
blob: 6b6fb7ad439ae92e1a29f00af3c9c1e94ff669e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.apache.tuscany.service.persistence.common;

import junit.framework.TestCase;

public class PersistenceUnitTestCase extends TestCase {

    protected void setUp() throws Exception {
/*
        addExtension("tuscany.jpa", getClass().getClassLoader().getResource("META-INF/sca/jpa.scdl"));
        addExtension("geronimo.jta", getClass().getClassLoader().getResource("META-INF/sca/geronimo.jta.scdl"));
        setApplicationSCDL(getClass().getClassLoader().getResource("META-INF/sca/test1.scdl"));
        super.setUp();
        RuntimeComponent runtime = (RuntimeComponent) component.getParent().getParent();
        CompositeComponent systemComposite = runtime.getSystemComponent();
        CompositeComponent topLevelComposite = (CompositeComponent) systemComposite.getSystemChild(TUSCANY_SYSTEM);

        JavaAtomicComponent cmp = (JavaAtomicComponent) component.getChild("TestService1");
        TestService1 testService1 = (TestService1) cmp.getTargetInstance();
        testService1.testMethod();
*/
    }

    protected void tearDown() throws Exception {
/*
        super.tearDown();
*/
    }

    public void testGetComponent() {
    }

}