blob: 811470ae8fcb2c8ce6a50ccaca8de14ef1a336f0 (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/**
* <copyright>
*
* Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others
* 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:
* Martin Taal
* </copyright>
*
* $Id: JPOXGenerateTest.java,v 1.5 2008/02/28 07:07:34 mtaal Exp $
*/
package org.eclipse.emf.teneo.jpox.test.generate;
import org.eclipse.emf.teneo.jpox.test.JPOXTestbed;
import org.eclipse.emf.teneo.test.AbstractActionTest;
import org.eclipse.emf.teneo.test.AbstractTestAction;
import org.eclipse.emf.teneo.test.conf.Testbed;
import org.eclipse.emf.teneo.test.stores.TestStore;
/**
* Encapsulates a real action to ensure that the action is not really done but only the generation
* of the mapping file and enhancement is done.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
* @version $Revision: 1.5 $
*/
public class JPOXGenerateTest extends AbstractActionTest {
/** Constructor */
public JPOXGenerateTest(Class testActionClass) {
super(testActionClass);
}
/** Constructor */
public JPOXGenerateTest(AbstractTestAction testAction) {
super(testAction);
}
/** Perform the mapping action */
@Override
public void testAction() {
((JPOXTestbed) Testbed.instance()).doMapping(this);
}
/** Throws unsupportedexception */
@Override
protected TestStore getStore() {
throw new UnsupportedOperationException("No store present for this type of test");
}
/** Passes the call to testAction */
@Override
protected void runTest() throws Throwable {
testAction();
}
/** Does nothing in this implementation */
@Override
public void setUp() throws Exception {
// do nothing
}
/** Does nothing in this implementation */
@Override
public void tearDown() {
// do nothing
}
}
|