Requirement r = new Requirement("test", ReqType.SW, "5.9", RepositoryType.GIT, "");
Assert.assertFalse(r.matches(new Version("5.8.0")));
Assert.assertFalse(r.matches(new Version("5.10.0")));
Assert.assertTrue(r.matches(new Version("5.9")));
Assert.assertTrue(r.matches(new Version("5.9.0")));
Assert.assertTrue(r.matches(new Version("5.9.1")));
r = new Requirement("test", ReqType.SW, "5.*", RepositoryType.GIT, "");
Assert.assertTrue(r.matches(new Version("5.9.1")));
Assert.assertTrue(r.matches(new Version("5.10.1")));
Assert.assertTrue(r.matches(new Version("5")));
Assert.assertFalse(r.matches(new Version("4.6.5")));