/[schmitzm]/branches/2.4.x/src_junit/skrueger/versionnumber/ReleaseUtilTest.java
ViewVC logotype

Annotation of /branches/2.4.x/src_junit/skrueger/versionnumber/ReleaseUtilTest.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1383 - (hide annotations)
Wed Jan 26 13:46:20 2011 UTC (14 years, 1 month ago) by alfonx
File MIME type: text/plain
File size: 766 byte(s)
trunk becomes 2.4.x ... starting to create multiple modules

1 alfonx 814 package skrueger.versionnumber;
2    
3 alfonx 833 import static org.junit.Assert.assertEquals;
4 alfonx 814
5     import org.apache.log4j.Logger;
6     import org.junit.Test;
7    
8 alfonx 1332 import schmitzm.junit.TestingClass;
9     public class ReleaseUtilTest extends TestingClass {
10 alfonx 814 private static Logger log = Logger.getLogger(ReleaseUtilTest.class);
11    
12     @Test
13     public void testExtractMinVersionFromString() {
14     assertEquals(0,ReleaseUtil.extractMinVersionFromString("0.0"));
15     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5-SNAPSHOT"));
16     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5r234"));
17 alfonx 1017
18     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5r201009221756"),0.01);
19 alfonx 814 }
20 alfonx 1137
21     @Test
22 alfonx 1186 public void testIsSnapshot()
23     {
24     System.out.println(ReleaseUtil.isSnapshot(ReleaseUtil.class));
25     }
26 alfonx 814 }

Properties

Name Value
svn:eol-style native
svn:keywords Id URL
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26