mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-07 20:16:32 +00:00
#631 - Partial Response : Add java doc
This commit is contained in:
1 parent
6d3dce065d
commit
c89bf0eb44
4 files changed
+38
-9
No files matched your search
@@ -38,6 +38,9 @@ import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Matchers.eq;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
/**
|
||||
* tests {@link VideoResource}.
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class VideoResourceTest {
|
||||
@Mock
|
||||
@@ -58,7 +61,8 @@ public class VideoResourceTest {
|
||||
public void shouldGiveVideoDetailsById() {
|
||||
String actualDetails = resource.getDetails(1);
|
||||
|
||||
String expectedDetails = "{\"id\": \"1\",\"title\": \"Avatar\",\"length\": 178,\"description\": \"epic science fiction film\",\"director\": \"James Cameron\",\"language\": \"English\",}";
|
||||
String expectedDetails = "{\"id\": \"1\",\"title\": \"Avatar\",\"length\": 178,\"description\": "
|
||||
+ "\"epic science fiction film\",\"director\": \"James Cameron\",\"language\": \"English\",}";
|
||||
assertEquals(expectedDetails, actualDetails);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user