krysalis-version/src/test/java/org/krysalis/version VersionIdentifierTest.java,NONE,1.1
Nick Chalko <[email protected]> Fri, 12 Nov 2004 03:00:12 +0000
| Newsgroups | gmane.comp.krysalis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/krysalis/krysalis-version/src/test/java/org/krysalis/version
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv520/src/test/java/org/krysalis/version
Added Files:
VersionIdentifierTest.java
Log Message:
Reorg the tests
--- NEW FILE: VersionIdentifierTest.java ---
/*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.krysalis.version;
import junit.framework.TestCase;
import org.krysalis.version.Version;
import org.krysalis.version.VersionIdentifier;
import org.krysalis.version.impl.VersionImplementationConstants;
/**
* @author ajack
*/
public class VersionIdentifierTest extends TestCase {
public VersionIdentifierTest(String arg0) {
super(arg0);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(VersionIdentifierTest.class);
}
public void testTrim1() {
String idKey = VersionImplementationConstants.VERSION_PACKAGE;
VersionIdentifier id =
VersionIdentifier.extractVersionIdentifier(Version.class);
assertEquals("Correctly trim .version.Version", idKey, id.getKey());
}
public void testTrim2() {
String idKey = "org.apache.depot.version.impl.sample";
VersionIdentifier id =
VersionIdentifier.extractVersionIdentifier(Version.class);
assertEquals("Correctly trim ", idKey, id.getKey());
}
}
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click