@Test public void rawVersionShouldContainAllInformationWhenVersionIsRelease() { assertThat( VersionFormatter.asRawVersion( "1.0", "201009291818", "1" ), equalTo( "1.0,201009291818#1" ) ); }
public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); }
VersionFormatter { public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); } }
VersionFormatter { public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); }  }
VersionFormatter { public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); }  static String asRawVersion( String version, String timestamp, String sequence ); static String asCanonicalVersion( String version, String timestamp, String sequence ); }
VersionFormatter { public static String asRawVersion( String version, String timestamp, String sequence ) { StringBuilder buff = new StringBuilder(); if ( version == null ) { version = VersionSupport.UNKNOWN; } buff.append( version ); if ( timestamp != null ) { buff.append( "," ).append( timestamp ); } if ( sequence != null ) { buff.append( "#" ).append( sequence ); } return buff.toString(); }  static String asRawVersion( String version, String timestamp, String sequence ); static String asCanonicalVersion( String version, String timestamp, String sequence );  }