How to use MatcherAssert class of org.hamcrest package

Best junit code snippet using org.hamcrest.MatcherAssert

Source:MaxTest.java Github

copy

Full Screen

1{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]"],"mutant":{"filename":"Chooser.java","line":23,"block":3,"id":{"indexes":"[10]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}2{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:36)]"],"mutant":{"filename":"Chooser.java","line":22,"block":2,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}3{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]"],"mutant":{"filename":"Chooser.java","line":24,"block":5,"id":{"indexes":"[19]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}4{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34), ch.lambdaj.function.aggregate.Max.choose(Max.java:22), ch.lambdaj.function.aggregate.Max.choose(Max.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMax(Assert.java:32), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:36)]"],"mutant":{"filename":"Chooser.java","line":22,"block":1,"id":{"indexes":"[4]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}5{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:24)]"],"mutant":{"filename":"Chooser.java","line":23,"block":4,"id":{"indexes":"[12]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}6{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":[],"mutant":{"filename":"Max.java","line":22,"block":1,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Max"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator"}}}7{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]"],"mutant":{"filename":"Max.java","line":22,"block":1,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Max"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}8{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testLesserFirst(MaxTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MaxTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MaxTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMax(Assert.java:33), ch.lambdaj.function.aggregate.MaxTest.testGreaterFirst(MaxTest.java:34)]"],"mutant":{"filename":"Max.java","line":22,"block":3,"id":{"indexes":"[12]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Max"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}...

Full Screen

Full Screen

Source:ConcatTest.java Github

copy

Full Screen

1{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]"],"mutant":{"filename":"Concat.java","line":46,"block":7,"id":{"indexes":"[37]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}2{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]"],"mutant":{"filename":"Concat.java","line":40,"block":2,"id":{"indexes":"[4]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}3{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]"],"mutant":{"filename":"Concat.java","line":42,"block":9,"id":{"indexes":"[51]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}4{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:52), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatNull(ConcatTest.java:42)]"],"mutant":{"filename":"Concat.java","line":51,"block":14,"id":{"indexes":"[88]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}5{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatNull(ConcatTest.java:42)]"],"mutant":{"filename":"Concat.java","line":57,"block":15,"id":{"indexes":"[93]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}6{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:45), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:45), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:45), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:34), ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:45), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNull(ConcatTest.java:36)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest), assertion=ch.lambdaj.function.aggregate.Concat.aggregate(Concat.java:45), ch.lambdaj.Assert.assertThatConcat(Assert.java:38), ch.lambdaj.function.aggregate.ConcatTest.testConcatNull(ConcatTest.java:42)]"],"mutant":{"filename":"Concat.java","line":44,"block":5,"id":{"indexes":"[24]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}7{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]"],"mutant":{"filename":"Concat.java","line":55,"block":13,"id":{"indexes":"[76]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}8{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNull(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatNull(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":[],"mutant":{"filename":"Concat.java","line":40,"block":3,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}9{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStringAndNumber(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:26), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStringAndNumber(ConcatTest.java:28)]","Description [testClass=ch.lambdaj.function.aggregate.ConcatTest, name=testConcatStrings(ch.lambdaj.function.aggregate.ConcatTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatConcat(Assert.java:39), ch.lambdaj.function.aggregate.ConcatTest.testConcatStrings(ConcatTest.java:20)]"],"mutant":{"filename":"Concat.java","line":53,"block":11,"id":{"indexes":"[63]","location":{"mdesc":"(Ljava\/util\/Iterator;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Concat"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}...

Full Screen

Full Screen

Source:MinTest.java Github

copy

Full Screen

1{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=ch.lambdaj.function.aggregate.Min.choose(Min.java:22), ch.lambdaj.function.aggregate.Min.choose(Min.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMin(Assert.java:26), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]"],"mutant":{"filename":"Chooser.java","line":23,"block":3,"id":{"indexes":"[10]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}2{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:36)]"],"mutant":{"filename":"Chooser.java","line":22,"block":2,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}3{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]"],"mutant":{"filename":"Chooser.java","line":24,"block":5,"id":{"indexes":"[19]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}4{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=ch.lambdaj.function.aggregate.Min.choose(Min.java:22), ch.lambdaj.function.aggregate.Min.choose(Min.java:1), ch.lambdaj.function.aggregate.Chooser.aggregate(Chooser.java:24), ch.lambdaj.Assert.assertThatMin(Assert.java:26), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:36)]"],"mutant":{"filename":"Chooser.java","line":22,"block":1,"id":{"indexes":"[4]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}5{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:24)]"],"mutant":{"filename":"Chooser.java","line":23,"block":4,"id":{"indexes":"[12]","location":{"mdesc":"(Ljava\/lang\/Object;Ljava\/lang\/Object;)Ljava\/lang\/Object;","method":"aggregate","class":"ch.lambdaj.function.aggregate.Chooser"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}6{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]"],"mutant":{"filename":"Min.java","line":22,"block":3,"id":{"indexes":"[12]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Min"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator"}}}7{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":[],"mutant":{"filename":"Min.java","line":22,"block":1,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Min"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator"}}}8{"coveredBy":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest)]"],"killing":["Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testLesserFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:18), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:20), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testLesserFirst(MinTest.java:22)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]","Description [testClass=ch.lambdaj.function.aggregate.MinTest, name=testGreaterFirst(ch.lambdaj.function.aggregate.MinTest), assertion=org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:30), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:32), org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20), ch.lambdaj.Assert.assertThatMin(Assert.java:27), ch.lambdaj.function.aggregate.MinTest.testGreaterFirst(MinTest.java:34)]"],"mutant":{"filename":"Min.java","line":22,"block":1,"id":{"indexes":"[6]","location":{"mdesc":"(Ljava\/lang\/Comparable;Ljava\/lang\/Comparable;)Ljava\/lang\/Comparable;","method":"choose","class":"ch.lambdaj.function.aggregate.Min"},"mutator":"org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator"}}}...

Full Screen

Full Screen

Source:DaoTest.java Github

copy

Full Screen

1package eu.ensup.etablissementscolaire;2import eu.ensup.etablissementscolaire.exceptions.DaoException;3import org.hamcrest.MatcherAssert;4import org.junit.jupiter.api.DisplayName;5import org.junit.jupiter.api.Test;6import static org.hamcrest.Matchers.*;7import static org.hamcrest.Matchers.instanceOf;8import eu.ensup.etablissementscolaire.exceptions.DaoException;9import org.hamcrest.MatcherAssert;10import org.hamcrest.collection.*;11import org.junit.jupiter.api.Test;12import static org.junit.jupiter.api.Assertions.fail;13import static org.mockito.Mockito.*;14import java.sql.Connection;15import java.sql.Date;16import java.text.ParseException;17import java.text.SimpleDateFormat;18import java.util.HashSet;19/**20 * Unit test for simple App.21 */22public class DaoTest23{24 /*25 @Test26 @DisplayName("Test for database connexion")27 public void testConnection() {28 MatcherAssert.assertThat(BaseDao.getCn(), is(notNullValue()));29 MatcherAssert.assertThat( BaseDao.getCn(), instanceOf(Connection.class));30 }31 @Test32 @DisplayName("Test get Etudiant")33 public void testgetEtudiant() throws ParseException {34 /* try {35 /* EtudiantDao etudiantDao = new EtudiantDao();36 Etudiant thomas = etudiantDao.get(14);37 Etudiant thomasMock = when(etudiantDao.get(14)).thenReturn();38 System.out.println("thomas.getClass() : " + thomas.getClass());39 MatcherAssert.assertThat(thomas, is(notNullValue()));40 MatcherAssert.assertThat(thomas, instanceOf(Etudiant.class));41 //etudiantDao.get(1);42 } catch (DaoException de) {43 fail("Une erreur est survenue lors de la récupération de l'étudiant");44 }45 }46 @Test47 @DisplayName("Test get all etudiant")48 public void testgetAllEtudiant() {49 try {50 EtudiantDao etudiantDao = new EtudiantDao();51 MatcherAssert.assertThat(etudiantDao.getAll().isEmpty(), is(false) );52 MatcherAssert.assertThat( etudiantDao.getAll(), hasItems(is(instanceOf(Etudiant.class))) );53 } catch (DaoException de) {54 // fail("Une erreur est survenue lors de la récupération de l'étudiant");55 }56 }57 /* @Test58 @Disabled59 @DisplayName("Test for connexion")60 public void testCreateEtudiant() {61 try {62 EtudiantDao etudiantDao = new EtudiantDao();63 long dateEtudiant = new SimpleDateFormat("yyyy/MM/dd").parse("1999/08/23").getTime();64 Etudiant maxime = new Etudiant("Dazin","maxime.dazin@gmail.com", " 1 bis avenue du 8 mai 1945", "0656889759", "Maxime", "RofHqpYnFRJzFfNs6J85/gMaepdLTPVQcM7eGcueY8E=","9S2dd0Xh0NMT6yUzd3bMFhfiui8=", new Date(dateEtudiant));65 int result = etudiantDao.create(maxime);66 MatcherAssert.assertThat( result, equalTo(0) );67 } catch (DaoException | ParseException de) {68 fail("Une erreur est survenue lors de du test de création de l'étudiant");69 }70 }71 @Test72 @DisplayName("Test get cours")73 public void testgetCours() {74 try {75 CoursDao coursDao = new CoursDao();76 Cours cours1 = coursDao.get(1);77 //System.out.println("thomas.getClass() : " + thomas.getClass());78 MatcherAssert.assertThat( cours1, is(notNullValue()) );79 MatcherAssert.assertThat( cours1, instanceOf(Cours.class) );80 /*Etudiant thomas = etudiantDao.get(1);81 System.out.println("thomas.getClass() : " + thomas.getClass());82 MatcherAssert.assertThat(thomas, instanceOf(Etudiant.class));83 //etudiantDao.get(1);84 } catch (DaoException de) {85 }86 }87 @Test88 @DisplayName("Test get Enseignant")89 public void testgetEnseignant() {90 try {91 EnseignantDao enseignantDao = new EnseignantDao();92 Enseignant enseignant1 = enseignantDao.get(1);93 //System.out.println("thomas.getClass() : " + thomas.getClass());94 MatcherAssert.assertThat( enseignant1, is(notNullValue()) );95 MatcherAssert.assertThat( enseignant1, instanceOf(Enseignant.class) );96 //etudiantDao.get(1);97 } catch (DaoException de) {98 //fail("Une erreur est survenue lors de la récupération de l'étudiant");99 }100 }101 @Test102 @DisplayName("Test get directeur")103 public void testgetDirecteur() {104 try {105 DirecteurDao directeurDao = new DirecteurDao();106 Directeur directeur1 = directeurDao.get(7);107 //System.out.println("thomas.getClass() : " + thomas.getClass());108 MatcherAssert.assertThat( directeur1, is(notNullValue()) );109 MatcherAssert.assertThat( directeur1, instanceOf(Directeur.class) );110 //etudiantDao.get(1);111 } catch (DaoException de) {112 //fail("Une erreur est survenue lors de la récupération de l'étudiant");113 }114 }115 @Test116 @DisplayName("Test get responsable")117 public void testgetResponsable() {118 try {119 ResponsableDao responsableDao = new ResponsableDao();120 Responsable responsable1 = responsableDao.get(9);121 //System.out.println("thomas.getClass() : " + thomas.getClass());122 MatcherAssert.assertThat( responsable1, is(notNullValue()) );123 MatcherAssert.assertThat( responsable1, instanceOf(Responsable.class) );124 //etudiantDao.get(1);125 } catch (DaoException de) {126 //fail("Une erreur est survenue lors de la récupération du responsable");127 }128 }129 @Test130 @DisplayName("Test get Matiere")131 public void testgetMatiere() {132 try {133 MatiereDao matiereDao = new MatiereDao();134 Matiere matiere1 = matiereDao.get(1);135 //System.out.println("thomas.getClass() : " + thomas.getClass());136 MatcherAssert.assertThat( matiere1, is(notNullValue()) );137 MatcherAssert.assertThat( matiere1, instanceOf(Matiere.class) );138 //etudiantDao.get(1);139 } catch (DaoException de) {140 //fail("Une erreur est survenue lors de la récupération de l'étudiant");141 }142 }*/143}...

Full Screen

Full Screen

Source:SimpleTest.java Github

copy

Full Screen

...106 }107 @Test108 public void check()109 {110 org.hamcrest.MatcherAssert.assertThat("myStringOfNote", startsWith("my"));111 org.hamcrest.MatcherAssert.assertThat("myStringOfNote", containsString("ring"));112 org.hamcrest.MatcherAssert.assertThat("foo", equalTo("foo"));113 org.hamcrest.MatcherAssert.assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));114 org.hamcrest.MatcherAssert.assertThat("myValue", allOf(startsWith("my"), containsString("Val")));115 org.hamcrest.MatcherAssert.assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")));116 org.hamcrest.MatcherAssert.assertThat("fab", both(containsString("a")).and(containsString("b")));117 org.hamcrest.MatcherAssert.assertThat("fan", either(containsString("a")).or(containsString("b")));118 org.hamcrest.MatcherAssert.assertThat(110, describedAs("expected :%0", equalTo(110), 110));119 org.hamcrest.MatcherAssert.assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")));120 org.hamcrest.MatcherAssert.assertThat("cheese", is(equalTo("cheese")));121 ThirdActivity thirdActivity = new ThirdActivity();122 org.hamcrest.MatcherAssert.assertThat(thirdActivity, instanceOf(ThirdActivity.class));123 org.hamcrest.MatcherAssert.assertThat(thirdActivity, isA(ThirdActivity.class));124 }125 @Test126 public void emailValidator_CorrectEmailSimple_ReturnsTrue() {127 com.google.common.truth.Truth.assertThat(EmailValidator.isValidEmail("name@email.com")).isTrue();128 com.google.common.truth.Truth.assertThat("a").isEqualTo("a");129 }130}...

Full Screen

Full Screen

Source:AbstractFactoryTest.java Github

copy

Full Screen

1package com.github.code4craft.helloworld.test;2import com.github.code4craft.helloworld.creational.abstract_factory.AbstractFactory;3import com.github.code4craft.helloworld.creational.abstract_factory.SplitHelloWorldFactory;4import org.hamcrest.MatcherAssert;5import org.hamcrest.Matchers;6import org.junit.Test;7import static org.hamcrest.MatcherAssert.assertThat;8import static org.hamcrest.Matchers.is;9/**10 * @author yihua.huang@dianping.com11 */12public class AbstractFactoryTest {13 @Test14 public void testHelloWorld() throws InstantiationException, IllegalAccessException {15 SplitHelloWorldFactory splitHelloWorldFactory = AbstractFactory.select(AbstractFactory.Type.Java);16 MatcherAssert.assertThat(splitHelloWorldFactory.createHelloWorldObject().object(), Matchers.is("Java"));17 MatcherAssert.assertThat(splitHelloWorldFactory.createHelloWorldInterjection().interjection(), Matchers.is("Hello"));18 splitHelloWorldFactory = AbstractFactory.select(AbstractFactory.Type.DesignPattern);19 MatcherAssert.assertThat(splitHelloWorldFactory.createHelloWorldInterjection().interjection(), Matchers.is("Hello"));20 MatcherAssert.assertThat(splitHelloWorldFactory.createHelloWorldObject().object(), Matchers.is("Abstract Factory"));21 }22}...

Full Screen

Full Screen

Source:HelloWorldStateContextTest.java Github

copy

Full Screen

1package com.github.code4craft.helloworld.test;2import com.github.code4craft.helloworld.behavioral.state.HelloWorldStateContext;3import org.hamcrest.MatcherAssert;4import org.junit.Test;5import static org.hamcrest.MatcherAssert.assertThat;6import static org.hamcrest.Matchers.is;7import org.hamcrest.Matchers;8/**9 * @author yihua.huang@dianping.com10 */11public class HelloWorldStateContextTest {12 @Test13 public void testHelloWorldStateContext(){14 HelloWorldStateContext helloWorldStateContext = new HelloWorldStateContext();15 helloWorldStateContext.appendWord("Hello");16 MatcherAssert.assertThat(helloWorldStateContext.helloWorld(), Matchers.is("Hello "));17 helloWorldStateContext.appendWord("State");18 MatcherAssert.assertThat(helloWorldStateContext.helloWorld(), Matchers.is("Hello State!"));19 helloWorldStateContext.appendWord("Whatever");20 MatcherAssert.assertThat(helloWorldStateContext.helloWorld(), Matchers.is("Hello State!"));21 }22}...

Full Screen

Full Screen

Source:HelloWorldDecoratorTest.java Github

copy

Full Screen

1package com.github.code4craft.helloworld.test;2import com.github.code4craft.helloworld.structural.decorator.HelloWorldDecorator;3import org.hamcrest.MatcherAssert;4import org.junit.Test;5import static org.hamcrest.MatcherAssert.assertThat;6import static org.hamcrest.Matchers.is;7import org.hamcrest.Matchers;8/**9 * @author yihua.huang@dianping.com10 */11public class HelloWorldDecoratorTest {12 @Test13 public void testHelloWorldDecorator(){14 HelloWorldDecorator helloWorldDecorator = new HelloWorldDecorator(new HelloWorldDecorator.DefaultHelloWorld());15 MatcherAssert.assertThat(helloWorldDecorator.helloWorld(), Matchers.is("Hello World!"));16 MatcherAssert.assertThat(helloWorldDecorator.helloDecorator(), Matchers.is("Hello Decorator!"));17 helloWorldDecorator = new HelloWorldDecorator(helloWorldDecorator);18 MatcherAssert.assertThat(helloWorldDecorator.helloWorld(), Matchers.is("Hello World!"));19 }20}...

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import org.hamcrest.Matchers;2import org.hamcrest.MatcherAssert;3import org.hamcrest.Matcher;4import org.hamcrest.MatcherAssert;5import org.hamcrest.Matchers;6import org.hamcrest.Matcher;7import org.hamcrest.MatcherAssert;8import org.hamcrest.Matchers;9import org.hamcrest.Matcher;10import org.hamcrest.MatcherAssert;11import org.hamcrest.Matchers;12import org.hamcrest.Matcher;13import org.hamcrest.Matchers;14import org.hamcrest.MatcherAssert;15import org.hamcrest.Matcher;16import org.hamcrest.MatcherAssert;17import org.hamcrest.Matchers;18import org.hamcrest.Matcher;19import org.hamcrest.MatcherAssert;20import org.hamcrest.Matchers;21import org.hamcrest.Matcher;22import org.hamcrest.MatcherAssert;23import org.hamcrest.Matchers;24import org.hamcrest.Matcher;25import org.hamcrest.Matchers;26import org.hamcrest.MatcherAssert;27import org.hamcrest.Matcher;28import org.hamcrest.MatcherAssert;29import org.hamcrest.Matchers;30import org.hamcrest.Matcher;31import org.hamcrest.MatcherAssert;32import org.hamcrest.Matchers;33import org.hamcrest.Matcher;34import org.hamcrest.MatcherAssert;35import org.hamcrest.Matchers;36import org.hamcrest.Matcher;37import org.hamcrest.Matchers;38import org.hamcrest.MatcherAssert;39import org.hamcrest.Matcher;40import org.hamcrest.MatcherAssert;41import org.hamcrest.Matchers;42import org.hamcrest.Matcher;43import org.hamcrest.MatcherAssert;44import org.hamcrest.Matchers;45import org.hamcrest.Matcher;46import org.hamcrest.MatcherAssert;47import org.hamcrest.Matchers;48import org.hamcrest.Matcher;49import org.hamcrest.Matchers;50import org.hamcrest.MatcherAssert;51import org.hamcrest.Matcher;52import org.hamcrest.MatcherAssert;53import org.hamcrest.Matchers;54import org.hamcrest.Matcher;55import org.hamcrest.MatcherAssert;56import org.hamcrest.Matchers;57import org.hamcrest.Matcher;58import org.hamcrest.MatcherAssert;59import org.hamcrest.Matchers;60import org.hamcrest.Matcher;61import org.hamcrest.Matchers;62import org.hamcrest.MatcherAssert;63import org.hamcrest.Matcher;64import org.hamcrest.MatcherAssert;65import org.hamcrest.Matchers;66import org.hamcrest.Matcher;67import org.hamcrest.MatcherAssert;68import org.hamcrest.Matchers;69import org.hamcrest.Matcher;70import org.hamcrest.MatcherAssert;71import org.hamcrest.Matchers;72import org.hamcrest.Matcher;73import org.hamcrest.Matchers;74import org.hamcrest.Matchers;75import org.hamcrest.MatcherAssert;76import org.hamcrest.Matcher;77import org.hamcrest.MatcherAssert;78import org.hamcrest.Matchers;79import org.hamcrest.Matcher;80import org.hamcrest.MatcherAssert

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import org.hamcrest.MatcherAssert;2import org.hamcrest.Matchers;3import org.junit.Test;4public class TestHamcrest {5public void testAssertTrue() {6boolean condition = true;7MatcherAssert.assertThat(condition, Matchers.is(true));8}9}10import org.junit.Assert;11import org.junit.Test;12public class TestHamcrest {13public void testAssertTrue() {14boolean condition = true;15Assert.assertThat(condition, Matchers.is(true));16}17}18import org.junit.Assert;19import org.junit.Test;20public class TestHamcrest {21public void testAssertTrue() {22boolean condition = true;23Assert.assertThat(condition,

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import org.hamcrest.MatcherAssert;2import org.hamcrest.Matchers;3import org.testng.annotations.Test;4public class Test1 {5public void test1() {6MatcherAssert.assertThat(5, Matchers.greaterThan(3));7}8}9import org.testng.Assert;10import org.testng.annotations.Test;11public class Test1 {12public void test1() {13Assert.assertTrue(5>3);14}15}16import org.testng.Assert;17import org.testng.annotations.Test;18public class Test1 {19public void test1() {20Assert.assertTrue(5>3);21Assert.assertTrue(5>6);22}23}24import org.testng.Assert;25import org.testng.annotations.Test;26public class Test1 {27public void test1() {28Assert.assertTrue(5>3, "5 is not greater than 3");29Assert.assertTrue(5>6, "5 is not greater than 6");30}31}

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import org.hamcrest.MatcherAssert.assertThat;2import org.hamcrest.Matchers.equalTo;3import org.junit.Test;4public class JunitTest {5 public void test() {6 assertThat(5, equalTo(5));7 }8}9OK (1 test)

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import org.hamcrest.MatcherAssert.assertThat;2import org.hamcrest.Matchers;3import org.junit.Test;4public class HamcrestTest {5 public void test() {6 assertThat(1, Matchers.equalTo(1));7 }8}9import org.junit.Assert;10import org.junit.Test;11public class JunitTest {12 public void test() {13 Assert.assertThat(1, Matchers.equalTo(1));14 }15}16org.hamcrest.MatcherAssert.assertThat(HamcrestTest.java:9)17org.junit.Assert.assertThat(JunitTest.java:9)

Full Screen

Full Screen

MatcherAssert

Using AI Code Generation

copy

Full Screen

1import static org.hamcrest.MatcherAssert.assertThat;2import static org.hamcrest.Matchers.*;3import org.testng.annotations.Test;4public class TestNG_HamcrestAsserts {5 public void testAsserts() {6 assertThat(12, is(12));7 assertThat(12, equalTo(12));8 assertThat("Hello", is("Hello"));9 assertThat("Hello", equalTo("Hello"));10 assertThat("Hello", containsString("He"));11 assertThat("Hello", startsWith("He"));12 assertThat("Hello", endsWith("lo"));13 assertThat("Hello", anyOf(startsWith("He"), endsWith("lo")));14 assertThat("Hello", allOf(startsWith("He"), endsWith("lo")));15 }16}17import static org.assertj.core.api.Assertions.assertThat;18import org.testng.annotations.Test;19public class TestNG_AssertJAsserts {20 public void testAsserts() {21 assertThat(12).isEqualTo(12);22 assertThat("Hello").isEqualTo("Hello");23 assertThat("Hello").contains("He");24 assertThat("Hello").startsWith("He");25 assertThat("Hello").endsWith("lo");26 assertThat("Hello").startsWith("He").endsWith("lo");27 }28}29import org.testng.Assert;30import org.testng.annotations.Test;31public class TestNG_TestNGAsserts {32 public void testAsserts() {33 Assert.assertEquals(12, 12);34 Assert.assertEquals("Hello", "Hello");35 Assert.assertTrue("Hello".contains("He"));36 Assert.assertTrue("Hello".startsWith("He"));37 Assert.assertTrue("Hello".endsWith("lo"));38 Assert.assertTrue("Hello".startsWith("He") && "Hello".endsWith("lo"));39 }40}41import org.junit.Assert;42import org.junit.Test;43public class TestNG_JUnitAsserts {44 public void testAsserts() {45 Assert.assertEquals(12, 12);46 Assert.assertEquals("Hello", "Hello");47 Assert.assertTrue("Hello".contains("He"));48 Assert.assertTrue("Hello".startsWith("He"));49 Assert.assertTrue("Hello".endsWith("lo"));50 Assert.assertTrue("Hello".startsWith("He") && "Hello".endsWith("lo"));51 }52}53import org

Full Screen

Full Screen
copy
1import javax.swing.*;2import java.awt.*;3import java.awt.event.*;45public class JScrollBarUnitIncrement {67 public static void main(String[] args) {8 final JFrame f = new JFrame("");9 JPanel panel = new JPanel();10 panel.setLayout(new GridLayout(2000, 1));11 for (int i = 0; i != 2000; i++) {12 JButton btn = new JButton("Button 2");13 panel.add(btn);14 }15 final JScrollPane sPane = new JScrollPane(panel);16 final int increment = 50;17 sPane.getVerticalScrollBar().setUnitIncrement(increment);18 KeyStroke kUp = KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0);19 KeyStroke kDown = KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0);20 sPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(kUp, "actionWhenKeyUp");21 sPane.getActionMap().put("actionWhenKeyUp", new AbstractAction("keyUpAction") {2223 private static final long serialVersionUID = 1L;2425 public void actionPerformed(ActionEvent e) {26 final JScrollBar bar = sPane.getVerticalScrollBar();27 int currentValue = bar.getValue();28 bar.setValue(currentValue - increment);29 }30 });31 sPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(kDown, "actionWhenKeyDown");32 sPane.getActionMap().put("actionWhenKeyDown", new AbstractAction("keyDownAction") {3334 private static final long serialVersionUID = 1L;3536 public void actionPerformed(ActionEvent e) {37 final JScrollBar bar = sPane.getVerticalScrollBar();38 int currentValue = bar.getValue();39 bar.setValue(currentValue + increment);40 }41 });42 f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);43 f.add(sPane);44 f.pack();45 SwingUtilities.invokeLater(new Runnable() {4647 public void run() {48 f.setVisible(true);49 }50 });51 }5253 private JScrollBarUnitIncrement() {54 }55}56
Full Screen

JUnit Tutorial:

LambdaTest also has a detailed JUnit tutorial explaining its features, importance, advanced use cases, best practices, and more to help you get started with running your automation testing scripts.

JUnit Tutorial Chapters:

Here are the detailed JUnit testing chapters to help you get started:

  • Importance of Unit testing - Learn why Unit testing is essential during the development phase to identify bugs and errors.
  • Top Java Unit testing frameworks - Here are the upcoming JUnit automation testing frameworks that you can use in 2023 to boost your unit testing.
  • What is the JUnit framework
  • Why is JUnit testing important - Learn the importance and numerous benefits of using the JUnit testing framework.
  • Features of JUnit - Learn about the numerous features of JUnit and why developers prefer it.
  • JUnit 5 vs. JUnit 4: Differences - Here is a complete comparison between JUnit 5 and JUnit 4 testing frameworks.
  • Setting up the JUnit environment - Learn how to set up your JUnit testing environment.
  • Getting started with JUnit testing - After successfully setting up your JUnit environment, this chapter will help you get started with JUnit testing in no time.
  • Parallel testing with JUnit - Parallel Testing can be used to reduce test execution time and improve test efficiency. Learn how to perform parallel testing with JUnit.
  • Annotations in JUnit - When writing automation scripts with JUnit, we can use JUnit annotations to specify the type of methods in our test code. This helps us identify those methods when we run JUnit tests using Selenium WebDriver. Learn in detail what annotations are in JUnit.
  • Assertions in JUnit - Assertions are used to validate or test that the result of an action/functionality is the same as expected. Learn in detail what assertions are and how to use them while performing JUnit testing.
  • Parameterization in JUnit - Parameterized Test enables you to run the same automated test scripts with different variables. By collecting data on each method's test parameters, you can minimize time spent on writing tests. Learn how to use parameterization in JUnit.
  • Nested Tests In JUnit 5 - A nested class is a non-static class contained within another class in a hierarchical structure. It can share the state and setup of the outer class. Learn about nested annotations in JUnit 5 with examples.
  • Best practices for JUnit testing - Learn about the best practices, such as always testing key methods and classes, integrating JUnit tests with your build, and more to get the best possible results.
  • Advanced Use Cases for JUnit testing - Take a deep dive into the advanced use cases, such as how to run JUnit tests in Jupiter, how to use JUnit 5 Mockito for Unit testing, and more for JUnit testing.

JUnit Certification:

You can also check out our JUnit certification if you wish to take your career in Selenium automation testing with JUnit to the next level.

Run junit automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

...Most popular Stackoverflow questions on MatcherAssert

Most used methods in MatcherAssert

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful