1 /*
2 * Copyright (c) 2002-2003 The XDoclet Team.
3 * All rights reserved.
4 */
5
6 package xdoclet;
7
8 import junit.framework.TestCase;
9
10 /***
11 * Test for Property.
12 *
13 * @author <a href="mailto:mbo at jcs.be">Mathias Bogaert</a>
14 * @version $Revision: 1.5 $
15 */
16 public class PropertyTest extends TestCase {
17 public void testProperty() {
18 Property property1 = new Property();
19 property1.setName("name");
20 property1.setValue("value");
21
22 assertEquals("name", property1.getName());
23 assertEquals("value", property1.getValue());
24
25 Property property2 = new Property("name", "value");
26 assertEquals("name", property2.getName());
27 assertEquals("value", property2.getValue());
28
29 assertTrue(property1.equals(property2));
30 property2.setName("blah");
31 assertFalse(property1.equals(property2));
32 }
33 }
This page was automatically generated by Maven