Skip to content

Commit

Permalink
Some fixes in example code and Sonar project sample report links
Browse files Browse the repository at this point in the history
  • Loading branch information
rlegendi committed Apr 26, 2012
1 parent 45ecf09 commit 4568ef3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 20-testing/20-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ A tesztelendő osztály:

``` java
public class Utils {
public static void sum(int[] arr) {
public static int sum(int[] arr) {
if (null == arr) {
throw new IllegalArgumentException("arr == null");
}

int sum = 0;
for (int i : arr) {
sum += arr;
sum += i;
}

return sum;
Expand Down Expand Up @@ -270,6 +270,7 @@ public interface Stack<E> {
* Mindenféle statisztikák - a *trend* miatt fontos.
* Összekötve a CI rendszerrel
* Mutatja a tesztelésre szoruló részeket
* [Tonnányi projecthez példa](http://nemo.sonarsource.org/)

#### Acceptance tesztek ####

Expand Down

0 comments on commit 4568ef3

Please sign in to comment.