#631 - Partial Response : [Refactor] Rename GetDetails method by id.

This commit is contained in:
Gopinath Langote 2017-09-14 18:47:46 +05:30
parent f38119c565
commit 87d4853846
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public class VideoResource {
this.videos = videos; this.videos = videos;
} }
public String getDenials(String id) { public String getDetails(String id) {
return videos.get(id).toString(); return videos.get(id).toString();
} }
} }

View File

@ -44,7 +44,7 @@ public class VideoResourceTest {
@Test @Test
public void shouldGiveVideoDetailsById() { public void shouldGiveVideoDetailsById() {
String details = resource.getDenials("1"); String details = resource.getDetails("1");
System.out.println(details); System.out.println(details);
} }
} }