01: /*
02: * WbVersionReaderTest.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.util;
13:
14: import junit.framework.TestCase;
15:
16: /**
17: *
18: * @author support@sql-workbench.net
19: */
20: public class WbVersionReaderTest extends TestCase {
21: public WbVersionReaderTest(String testName) {
22: super (testName);
23: }
24:
25: public void testAvailableUpdate() {
26: VersionNumber current = new VersionNumber("96.8");
27: VersionNumber dev = new VersionNumber("97.1");
28: VersionNumber stable = new VersionNumber("97");
29:
30: WbVersionReader reader = new WbVersionReader(dev, stable);
31: UpdateVersion upd = reader.getAvailableUpdate(current);
32: assertEquals(UpdateVersion.devBuild, upd);
33: }
34: }
|