/[schmitzm]/trunk/src_junit/skrueger/versionnumber/ReleaseUtilTest.java
ViewVC logotype

Annotation of /trunk/src_junit/skrueger/versionnumber/ReleaseUtilTest.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1186 - (hide annotations)
Wed Oct 27 14:56:27 2010 UTC (14 years, 4 months ago) by alfonx
File MIME type: text/plain
File size: 709 byte(s)


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     public class ReleaseUtilTest {
9     private static Logger log = Logger.getLogger(ReleaseUtilTest.class);
10    
11     @Test
12     public void testExtractMinVersionFromString() {
13     assertEquals(0,ReleaseUtil.extractMinVersionFromString("0.0"));
14     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5-SNAPSHOT"));
15     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5r234"));
16 alfonx 1017
17     assertEquals(5,ReleaseUtil.extractMinVersionFromString("1.5r201009221756"),0.01);
18 alfonx 814 }
19 alfonx 1137
20     @Test
21 alfonx 1186 public void testIsSnapshot()
22     {
23     System.out.println(ReleaseUtil.isSnapshot(ReleaseUtil.class));
24     }
25 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