diff --git a/src/main/java/juan/jimenez/SVC/miw/upm/es/C21.java b/src/main/java/juan/jimenez/SVC/miw/upm/es/C21.java index 559c16c..b93afb1 100644 --- a/src/main/java/juan/jimenez/SVC/miw/upm/es/C21.java +++ b/src/main/java/juan/jimenez/SVC/miw/upm/es/C21.java @@ -10,4 +10,8 @@ public String m2() { return Thread.currentThread().getStackTrace()[1].getMethodName(); } + public String m3() { + return Thread.currentThread().getStackTrace()[1].getMethodName(); + } + } diff --git a/src/test/java/juan/jimenez/SVC/miw/upm/es/C21Test.java b/src/test/java/juan/jimenez/SVC/miw/upm/es/C21Test.java index e90c953..9adbc88 100644 --- a/src/test/java/juan/jimenez/SVC/miw/upm/es/C21Test.java +++ b/src/test/java/juan/jimenez/SVC/miw/upm/es/C21Test.java @@ -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()); + } }