Revision 15398
import/ext3D/branches/ext3D_v1.1/libAnimation/test/com/iver/cit/gvsig/animation/AnimationTest.java | ||
---|---|---|
11 | 11 |
import junit.framework.TestCase; |
12 | 12 |
|
13 | 13 |
import com.iver.cit.gvsig.animation.interval.AnimationDatedInterval; |
14 |
import com.iver.cit.gvsig.animation.test.Animation3D; |
|
15 |
import com.iver.cit.gvsig.animation.test.AnimationLayer2D; |
|
16 |
import com.iver.cit.gvsig.animation.test.AnimationTypeFactory3D; |
|
17 |
import com.iver.cit.gvsig.animation.test.AnimationTypeFactoryLayer2D; |
|
14 | 18 |
import com.iver.cit.gvsig.animation.traks.AnimationDatedTrack; |
15 | 19 |
import com.iver.utiles.extensionPoints.ExtensionPoint; |
16 | 20 |
import com.iver.utiles.extensionPoints.ExtensionPoints; |
... | ... | |
37 | 41 |
// + a3D.getClassName() + "\n " + a3D.getDescription()); |
38 | 42 |
|
39 | 43 |
} |
44 |
|
|
45 |
public void testRegisterType2D() throws Throwable { |
|
40 | 46 |
|
47 |
AnimationLayer2D a3D; |
|
48 |
|
|
49 |
AnimationTypeFactoryLayer2D.register(); |
|
50 |
ExtensionPoints extensionPoints = ExtensionPointsSingleton |
|
51 |
.getInstance(); |
|
52 |
System.out.println("Getting extension point..."); |
|
53 |
ExtensionPoint extPoint = ((ExtensionPoint) extensionPoints |
|
54 |
.get("Animation")); |
|
55 |
System.out.println("Creating animation type ..."); |
|
56 |
a3D = (AnimationLayer2D) extPoint.create("AnimationLayer2D"); |
|
57 |
System.out.println("Done " + a3D); |
|
58 |
// System.out.println("Resultados:\n " + a3D.getName() + "\n " |
|
59 |
// + a3D.getClassName() + "\n " + a3D.getDescription()); |
|
60 |
|
|
61 |
} |
|
62 |
|
|
41 | 63 |
public void testCreateAnimationContainer() throws Throwable { |
42 | 64 |
|
43 | 65 |
// Inicialicing |
Also available in: Unified diff