Skip to content

Commit

Permalink
Agrega metodo m3() en la clase C21
Browse files Browse the repository at this point in the history
  • Loading branch information
jchantej committed Sep 17, 2017
1 parent f5d2552 commit c8fa427
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/juan/jimenez/SVC/miw/upm/es/C21.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ public String m2() {
return Thread.currentThread().getStackTrace()[1].getMethodName();
}

public String m3() {
return Thread.currentThread().getStackTrace()[1].getMethodName();
}

}
6 changes: 6 additions & 0 deletions src/test/java/juan/jimenez/SVC/miw/upm/es/C21Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ public void testC21m2() {
c21 = new C21();
assertEquals("m2", c21.m2());
}

@Test
public void testC21m3() {
c21 = new C21();
assertEquals("m3", c21.m3());
}
}

0 comments on commit c8fa427

Please sign in to comment.