2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 6e88fbb5 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

Refactor Version.java to specify major and minor version instead of label


Signed-off-by: Stefan Schuhbaeck's avatarhm-schuhba1 <stefan.schuhbaeck@hm.edu>
parent cccaa572
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "warteschlange_ein_ziel",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "test_postvis",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
{
"name" : "basic_1_chicken_osm1",
"description" : "",
"release" : "0.8",
"release" : "0.9",
"commithash" : "warning: no commit hash",
"processWriters" : {
"files" : [ {
......
package org.vadere.simulator.entrypoints;
import org.hamcrest.core.IsEqual;
import org.junit.Test;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.*;
public class VersionTest {
@Test
public void test_UNDEFINED(){
assertThat("undefined", equalTo(Version.UNDEFINED.label()));
assertThat(-1, equalTo(Version.UNDEFINED.major()));
assertThat(-1, equalTo(Version.UNDEFINED.minor()));
}
@Test
public void test_NOT_A_RELEASE(){
assertThat("not a release", equalTo(Version.NOT_A_RELEASE.label()));
assertThat(-1, equalTo(Version.NOT_A_RELEASE.major()));
assertThat(-1, equalTo(Version.NOT_A_RELEASE.minor()));
}
@Test
public void test_V01(){
assertThat("0.1", equalTo(Version.V0_1.label()));
assertThat(0, equalTo(Version.V0_1.major()));
assertThat(1, equalTo(Version.V0_1.minor()));
}
@Test
public void test_V08(){
assertThat("0.8", equalTo(Version.V0_8.label()));
assertThat(0, equalTo(Version.V0_8.major()));
assertThat(8, equalTo(Version.V0_8.minor()));
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment