Skip to content

Commit

Permalink
🧪 add failing test for BigBone: andregasser/bigbone#524
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Feb 7, 2025
1 parent 25d461f commit 332f323
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/test/java/swiss/fihlon/apus/MastodonTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package swiss.fihlon.apus;

import org.junit.jupiter.api.Test;
import social.bigbone.MastodonClient;
import social.bigbone.api.Range;
import social.bigbone.api.entity.Status;
import social.bigbone.api.exception.BigBoneRequestException;

import java.util.List;

import static social.bigbone.api.method.TimelineMethods.StatusOrigin.LOCAL_AND_REMOTE;

public class MastodonTest {

@Test
void showPosts() throws BigBoneRequestException {
final MastodonClient client = new MastodonClient.Builder("mastodon.social").build(); // AbstractMethodError
final Range range = new Range(null, null, null, 10);
final List<Status> posts = client.timelines().getTagTimeline("java", LOCAL_AND_REMOTE, range).execute().getPart();
System.out.println(posts);
}

}

0 comments on commit 332f323

Please sign in to comment.