Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Nov 21, 2024
1 parent c402332 commit 15b370e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void start(Stage stage) {
when(appBrand.property(BrandableProperty.SUPPORT_URL)).thenReturn("https://www.pdfsam.org/support");
when(appBrand.property(BrandableProperty.SCM_URL)).thenReturn("https://www.pdfsam.org/scm");
when(appBrand.property(BrandableProperty.TRANSLATE_URL)).thenReturn("https://www.pdfsam.org/translate");
when(appBrand.property(BrandableProperty.TWITTER_URL)).thenReturn("https://www.pdfsam.org/twitter");
when(appBrand.property(BrandableProperty.BLUESKY_URL)).thenReturn("https://www.pdfsam.org/bsky");
when(appBrand.property(BrandableProperty.DONATE_URL)).thenReturn("https://www.pdfsam.org/donate");
when(appBrand.property(BrandableProperty.FACEBOOK_URL)).thenReturn("https://www.pdfsam.org/facebook");
when(appBrand.property(BrandableProperty.LICENSE_NAME)).thenReturn("agpl3");
Expand Down Expand Up @@ -156,10 +156,10 @@ public void clickDonate() {
}

@Test
public void clickTwitter() {
robot.clickOn(i18n().tr("Follow us on Twitter"));
public void clickBluesky() {
robot.clickOn(i18n().tr("Follow us on Bluesky"));
verify(listener, atLeastOnce()).onEvent(captor.capture());
assertEquals("https://www.pdfsam.org/twitter", captor.getValue().url());
assertEquals("https://www.pdfsam.org/bsky", captor.getValue().url());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void setUp() {
AppBrand appBrand = mock(AppBrand.class);
when(appBrand.property(BrandableProperty.DOWNLOAD_URL)).thenReturn("http://www.pdfsam.org");
when(appBrand.property(BrandableProperty.DONATE_URL)).thenReturn("http://www.pdfsam.org");
when(appBrand.property(BrandableProperty.TWEETER_SHARE_URL)).thenReturn("http://www.pdfsam.org");
when(appBrand.property(BrandableProperty.BLUESKY_SHARE_URL)).thenReturn("http://www.pdfsam.org");
when(appBrand.property(BrandableProperty.FACEBOOK_SHARE_URL)).thenReturn("http://www.pdfsam.org");
victim = new NotificationsController(container, service, appBrand);
app().persistentSettings().set(BooleanPersistentProperty.DONATION_NOTIFICATION, true);
Expand Down

0 comments on commit 15b370e

Please sign in to comment.