add getting addition data from the github api
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a03206a8e1
commit
46382334cb
4 changed files with 225 additions and 30 deletions
|
@ -0,0 +1,20 @@
|
|||
package tag.matcherImplementations;
|
||||
|
||||
import link.LinkUrl;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
class GitHubTagMatcherTest {
|
||||
|
||||
@Test
|
||||
void gettingDescriptionWorks() {
|
||||
|
||||
var sut = new GitHubTagMatcher();
|
||||
|
||||
var tag = sut.ifMatches(new LinkUrl("https://github.com/filefighter/Webapp")).getTag().orElseThrow();
|
||||
|
||||
assertEquals("Frontend Service for FileFighter", tag.getAdditionalData().orElseThrow());
|
||||
|
||||
}
|
||||
}
|
Reference in a new issue