summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Kast <julian@livio.com>2020-08-23 14:20:21 -0400
committerJulian Kast <julian@livio.com>2020-08-23 14:20:21 -0400
commit2ada23f3bd5cb0d35c8dee344a925f39b1e2ff0c (patch)
tree6e9783398920bb06e839ac1abcb8eef33024f70b
parentd901d744954337e4baff75334ee0b6c736f54e1e (diff)
downloadsdl_android-2ada23f3bd5cb0d35c8dee344a925f39b1e2ff0c.tar.gz
Fix unit test
-rw-r--r--android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperationTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperationTest.java b/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperationTest.java
index da0269053..a279e3aec 100644
--- a/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperationTest.java
+++ b/android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperationTest.java
@@ -269,7 +269,7 @@ public class TextAndGraphicUpdateOperationTest {
// Test The files to be updated are already uploaded, send the full show immediately
String textField11 = "It's not";
TextsAndGraphicsState textsAndGraphicsState = new TextsAndGraphicsState(textField11, textField2, textField3, textField4,
- mediaTrackField, title, testArtwork3, testArtwork4, textAlignment, textField1Type, textField2Type, textField3Type, textField4Type);
+ mediaTrackField, title, testArtwork1, testArtwork2, textAlignment, textField1Type, textField2Type, textField3Type, textField4Type);
textAndGraphicUpdateOperation = new TextAndGraphicUpdateOperation(internalInterface, fileManager, defaultMainWindowCapability, currentScreenData, textsAndGraphicsState, listener, currentScreenDataUpdatedListener);
textAndGraphicUpdateOperation.onExecute();
assertEquals(textAndGraphicUpdateOperation.getCurrentScreenData().getMainField1(), textField11);
@@ -304,6 +304,7 @@ public class TextAndGraphicUpdateOperationTest {
}
+ @Test
public void testTaskCanceledAfterTextSent() {
doAnswer(onShowSuccessCanceled).when(internalInterface).sendRPC(any(Show.class));
textAndGraphicUpdateOperation.onExecute();