Class PhotoTest
- java.lang.Object
-
- PhotoTest
-
class PhotoTest extends java.lang.ObjectTest class to upload and delete a photo.
-
-
Constructor Summary
Constructors Constructor Description PhotoTest()
-
Method Summary
Modifier and Type Method Description (package private) voidadd_NewPhoto_True()Test to upload a photo.(package private) voidadd_PhotoToNonExistingAlbum_IndexOutOfBoundsExceptionThrown()An IndexOutOfBoundsException is expected to be thrown when adding a photo to a non existing album.(package private) voidgetUserId_CorrectPhotoUserID_isEqual()Test to check whether the photo was uploaded to the correct user.(package private) static voidsetup()
-
-
-
Method Detail
-
setup
@BeforeAll static void setup()
-
add_NewPhoto_True
@Test void add_NewPhoto_True()
Test to upload a photo.
-
add_PhotoToNonExistingAlbum_IndexOutOfBoundsExceptionThrown
@Test void add_PhotoToNonExistingAlbum_IndexOutOfBoundsExceptionThrown()
An IndexOutOfBoundsException is expected to be thrown when adding a photo to a non existing album.
-
getUserId_CorrectPhotoUserID_isEqual
@Test void getUserId_CorrectPhotoUserID_isEqual()
Test to check whether the photo was uploaded to the correct user.
-
-