2121import java .util .List ;
2222
2323import static junit .framework .TestCase .assertEquals ;
24- import static junit .framework .TestCase .assertNotNull ;
2524import static junit .framework .TestCase .assertNull ;
2625import static junit .framework .TestCase .assertTrue ;
2726import static org .mockito .Mockito .mock ;
@@ -99,14 +98,11 @@ public void testSetPrimaryGraphic() {
9998 screenManager .setPrimaryGraphic (testArtwork );
10099 assertEquals (screenManager .getPrimaryGraphic (), testArtwork );
101100 }
102-
103101 @ Test
104102 public void testSetPrimaryGraphicWithBlankImage () {
105103 screenManager .setPrimaryGraphic (null );
106- assertNotNull (screenManager .getPrimaryGraphic ());
107- assertEquals (screenManager .getPrimaryGraphic ().getName (), "blankArtwork" );
104+ assertNull (screenManager .getPrimaryGraphic ());
108105 }
109-
110106 @ Test
111107 public void testSetSecondaryGraphic () {
112108 screenManager .setSecondaryGraphic (testArtwork );
@@ -116,8 +112,7 @@ public void testSetSecondaryGraphic() {
116112 @ Test
117113 public void testSetSecondaryGraphicWithBlankImage () {
118114 screenManager .setSecondaryGraphic (null );
119- assertNotNull (screenManager .getSecondaryGraphic ());
120- assertEquals (screenManager .getSecondaryGraphic ().getName (), "blankArtwork" );
115+ assertNull (screenManager .getSecondaryGraphic ());
121116 }
122117
123118 @ Test
0 commit comments