]> source.dussan.org Git - sonarqube.git/blob
fe422a3b08dce355fe3091b5d3c0de6ff64be377
[sonarqube.git] /
1 package org.sonar.tests.clover2.module1;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.fail;
5 import org.junit.Test;
6
7
8 public class HelloTest {
9
10         @Test
11           public void shouldSayHello() {
12             assertEquals("hi", new Hello("hi").say());
13           }
14
15           @Test
16           public void thisIsError() {
17             assertEquals("foo", "bar");
18           }
19
20           @Test
21           public void thisIsFailure() {
22             throw new RuntimeException();
23           }
24
25           @Test
26           public void anotherTest() {
27             assertEquals("hi", new Hello("hi").say());
28           }
29
30           @Test
31           public void again() {
32             assertEquals("hi", new Hello("hi").say());
33           }
34
35           @Test
36           public void thelast() {
37             assertEquals("hi", new Hello("hi").say());
38           }
39 }