01: /*
02: * SequenceDefinitionTest.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db;
13:
14: import junit.framework.TestCase;
15:
16: /**
17: * @author support@sql-workbench.net
18: */
19: public class SequenceDefinitionTest extends TestCase {
20: public SequenceDefinitionTest(String testName) {
21: super (testName);
22: }
23:
24: public void testEquals() {
25: SequenceDefinition def1 = new SequenceDefinition("public",
26: "seq_one");
27: def1.setSequenceProperty("INCREMENT", new Integer(1));
28: SequenceDefinition def2 = new SequenceDefinition("public",
29: "seq_two");
30: def2.setSequenceProperty("INCREMENT", new Integer(1));
31: assertEquals(def1.equals(def2), true);
32:
33: def2.setSequenceProperty("CACHE", new Integer(50));
34: assertEquals(def1.equals(def2), false);
35: }
36: }
|