1 package org.apache.maven.plugin.eclipse;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import junit.framework.TestCase;
23
24 public class WorkspaceConfigurationTest
25 extends TestCase
26 {
27
28 public void testGetWebsphereVersion()
29 {
30 WorkspaceConfiguration wc = new WorkspaceConfiguration();
31
32 final String was_express_v51 = "was.express.v51";
33 wc.setDefaultDeployServerId( was_express_v51 );
34 assertEquals( "5.1", wc.getWebsphereVersion() );
35
36 final String was_base_v51 = "was.base.v51";
37 wc.setDefaultDeployServerId( was_base_v51 );
38 assertEquals( "5.1", wc.getWebsphereVersion() );
39
40 final String was_base_v6 = "was.base.v6";
41 wc.setDefaultDeployServerId( was_base_v6 );
42 assertEquals( "6.0", wc.getWebsphereVersion() );
43
44 final String was_base_v61 = "was.base.v61";
45 wc.setDefaultDeployServerId( was_base_v61 );
46 assertEquals( "6.1", wc.getWebsphereVersion() );
47
48 final String was_base_v7 = "was.base.v7";
49 wc.setDefaultDeployServerId( was_base_v7 );
50 assertEquals( "7.0", wc.getWebsphereVersion() );
51
52
53
54
55
56 }
57 }