com.fjalvarez.tdd.helloworld.GreeterTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
c 1
b 0
f 0
rs 10
wmc 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A shouldSayHelloToWorld() 0 5 1
shouldSayHelloToWorld 0 5 ?
1
package com.fjalvarez.tdd.helloworld;
2
3
import org.junit.Test;
4
5
import static org.hamcrest.core.IsEqual.*;
6
import static org.junit.Assert.*;
7
8
public class GreeterTest {
9
10
    @Test
11
    public void shouldSayHelloToWorld() {
12
        Greeter greeter = new Greeter();
13
        String helloMessage = greeter.sayHello();
14
        assertThat(helloMessage, equalTo("Hello World!"));
15
    }
16
}
17