|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.s60tools.imaker.internal.iqrf.tests; |
|
19 |
|
20 import junit.framework.TestCase; |
|
21 |
|
22 import com.nokia.s60tools.imaker.internal.iqrf.ConfigurationElement; |
|
23 import com.nokia.s60tools.imaker.internal.iqrf.IQRFFactory; |
|
24 |
|
25 |
|
26 public class ConfigurationElementTest extends TestCase { |
|
27 protected ConfigurationElement fixture = null; |
|
28 |
|
29 protected void setFixture(ConfigurationElement fixture) { |
|
30 this.fixture = fixture; |
|
31 } |
|
32 |
|
33 private ConfigurationElement getFixture() { |
|
34 return fixture; |
|
35 } |
|
36 |
|
37 public void setUp() throws Exception { |
|
38 setFixture(IQRFFactory.eINSTANCE.createConfigurationElement()); |
|
39 } |
|
40 |
|
41 public void testName() { |
|
42 String name = "configurationElementName"; |
|
43 ConfigurationElement conel = getFixture(); |
|
44 conel.setName(name); |
|
45 assertEquals(conel.getName(),name); |
|
46 } |
|
47 |
|
48 public void testDescription() { |
|
49 String description = "This is test description"; |
|
50 ConfigurationElement conel = this.getFixture(); |
|
51 conel.setDescription(description); |
|
52 assertEquals(conel.getDescription(),description); |
|
53 } |
|
54 |
|
55 public void testValues() { |
|
56 String values = "example value"; |
|
57 ConfigurationElement conel = this.getFixture(); |
|
58 conel.setValues(values); |
|
59 assertEquals(conel.getValues(),values); |
|
60 } |
|
61 |
|
62 public void tearDown() throws Exception { |
|
63 setFixture(null); |
|
64 } |
|
65 |
|
66 } //ConfigurationElementTest |