Commit e9583495 authored by Greg Messner's avatar Greg Messner
Browse files

Added test for search results (#425).

parent 5999be97
......@@ -83,6 +83,7 @@ import org.gitlab4j.api.models.PushRules;
import org.gitlab4j.api.models.RegistryRepository;
import org.gitlab4j.api.models.Runner;
import org.gitlab4j.api.models.RunnerDetail;
import org.gitlab4j.api.models.SearchBlob;
import org.gitlab4j.api.models.Session;
import org.gitlab4j.api.models.Snippet;
import org.gitlab4j.api.models.SshKey;
......@@ -545,4 +546,10 @@ public class TestGitLabApiBeans {
List<Label> labels = unmarshalResourceList(Label.class, "labels.json");
assertTrue(compareJson(labels, "labels.json"));
}
@Test
public void testSearchBlobs() throws Exception {
List<SearchBlob> searchResults = unmarshalResourceList(SearchBlob.class, "wiki-blobs.json");
assertTrue(compareJson(searchResults, "wiki-blobs.json"));
}
}
[
{
"basename": "home",
"data": "hello\n\nand bye\n\nend",
"filename": "home.md",
"id": 123,
"ref": "master",
"startline": 5,
"project_id": 6
}
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment