Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Feb 9, 2025
1 parent 8dc962d commit 4fb60fc
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.perflyst.twire;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

import android.os.Parcel;
Expand Down Expand Up @@ -62,19 +61,15 @@ public void game() {
"1",
2,
3,
"https://example.com/small",
"https://example.com/medium",
"https://example.com/large"
"https://example.com/"
);

Game newGame = clone(game);

assertEquals(game.gameTitle, newGame.gameTitle);
assertEquals(game.gameId, newGame.gameId);
assertEquals(game.gameViewers, newGame.gameViewers);
assertEquals(game.getLowPreview(), newGame.getLowPreview());
assertEquals(game.getMediumPreview(), newGame.getMediumPreview());
assertEquals(game.getHighPreview(), newGame.getHighPreview());
assertEquals(game.previewTemplate, newGame.previewTemplate);
}

@Test
Expand All @@ -83,7 +78,7 @@ public void streamInfo() {
new UserInfo("1", "login", "name"),
"game",
2,
new String[] {"previews"},
"preview",
3,
"title"
);
Expand All @@ -92,7 +87,7 @@ public void streamInfo() {

assertEquals(streamInfo.game, newStreamInfo.game);
assertEquals(streamInfo.currentViewers, newStreamInfo.currentViewers);
assertArrayEquals(streamInfo.previews, newStreamInfo.previews);
assertEquals(streamInfo.previewTemplate, newStreamInfo.previewTemplate);
assertEquals(streamInfo.startedAt, newStreamInfo.startedAt);
assertEquals(streamInfo.title, newStreamInfo.title);
}
Expand Down

0 comments on commit 4fb60fc

Please sign in to comment.