-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from NAXAM/3-revise-a-tag-regex-and-support-bin…
…tray Revise a tag regex and support Bintray
- Loading branch information
Showing
3 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using Xunit; | ||
using System.Linq; | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace MavenNet.Tests | ||
{ | ||
public class JcenterTest | ||
{ | ||
const string JCENTER_URL_REPO = "https://dl.bintray.com/kommunicate/Kommunicate-Android-Chat-SDK/"; | ||
|
||
[Fact] | ||
public async Task Test_Refresh_URL() | ||
{ | ||
var repo = MavenRepository.FromUrl(JCENTER_URL_REPO); | ||
await repo.Refresh(); | ||
|
||
Assert.True(repo.Groups.Any()); | ||
} | ||
|
||
[Fact] | ||
public async Task Test_Project_URL() | ||
{ | ||
var repo = MavenRepository.FromUrl(JCENTER_URL_REPO); | ||
await repo.Refresh(); | ||
|
||
var project = await repo.GetProjectAsync("io.kommunicate.sdk", "kommunicateui", "2.0.5"); | ||
|
||
Assert.True(project != null); | ||
} | ||
|
||
[Fact] | ||
public async Task Test_GroupIds_Project_URL() | ||
{ | ||
var repo = MavenRepository.FromUrl(JCENTER_URL_REPO); | ||
await repo.Refresh("io.kommunicate.sdk"); | ||
|
||
var project = await repo.GetProjectAsync("io.kommunicate.sdk", "kommunicateui", "2.0.5"); | ||
|
||
Assert.True(project != null); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters