File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
src/test/java/io/codebottle/api/test Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ package io .codebottle .api .test ;
2+
3+ import io .codebottle .api .CodeBottle ;
4+ import io .codebottle .api .model .Snippet ;
5+ import org .junit .Before ;
6+ import org .junit .Test ;
7+
8+ import static org .junit .Assert .assertNotNull ;
9+
10+ public class RequestTest {
11+ private CodeBottle codeBottle ;
12+
13+ @ Before
14+ public void setUp () {
15+ codeBottle = CodeBottle .builder ()
16+ .build ()
17+ .waitForLazyLoading ();
18+ }
19+
20+ @ Test
21+ public void testRequestSnippetByID () {
22+ final Snippet snippet = codeBottle .requestSnippetByID ("1b6c6604d6" ).join ();
23+
24+ assertNotNull ("Requested Snippet is null!" , snippet );
25+ }
26+
27+ @ Test
28+ public void testRequestRevisionByID () {
29+ final Snippet .Revision revision = codeBottle .requestSnippetRevisionByID ("1b6c6604d6" , 1 ).join ();
30+
31+ assertNotNull ("Requested Revision is null!" , revision );
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments