Skip to content

Commit 87d4853

Browse files
author
Gopinath Langote
committed
iluwatar#631 - Partial Response : [Refactor] Rename GetDetails method by id.
1 parent f38119c commit 87d4853

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

partial-response/src/main/java/com/iluwatar/partialresponse/VideoResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public VideoResource(Map<String, Video> videos) {
3333
this.videos = videos;
3434
}
3535

36-
public String getDenials(String id) {
36+
public String getDetails(String id) {
3737
return videos.get(id).toString();
3838
}
3939
}

partial-response/src/test/java/com/iluwatar/partialresponse/VideoResourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void setUp() {
4444

4545
@Test
4646
public void shouldGiveVideoDetailsById() {
47-
String details = resource.getDenials("1");
47+
String details = resource.getDetails("1");
4848
System.out.println(details);
4949
}
5050
}

0 commit comments

Comments
 (0)