Skip to content

Commit 30e11ca

Browse files
Merge pull request #1457 from smartdevicelink/TextAndGraphicsManager-Refactor-Queues
Refactor Text & Graphic Manager to use queues
2 parents 324778e + 95da6a2 commit 30e11ca

9 files changed

Lines changed: 1948 additions & 1186 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/ScreenManagerTests.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.List;
2222

2323
import static junit.framework.TestCase.assertEquals;
24-
import static junit.framework.TestCase.assertNotNull;
2524
import static junit.framework.TestCase.assertNull;
2625
import static junit.framework.TestCase.assertTrue;
2726
import 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

Comments
 (0)