use of org.eclipse.che.plugin.github.ide.load.ProjectData in project che by eclipse.
the class GithubImporterPageViewImpl method setRepositories.
@Override
public void setRepositories(@NotNull List<ProjectData> repositories) {
// Wraps Array in java.util.List
List<ProjectData> list = new ArrayList<>();
for (ProjectData repository : repositories) {
list.add(repository);
}
this.repositories.setRowData(list);
}
use of org.eclipse.che.plugin.github.ide.load.ProjectData in project che by eclipse.
the class GithubImporterPagePresenterTest method onRepositorySelectedTest.
@Test
public void onRepositorySelectedTest() {
ProjectData projectData = new ProjectData("name", "description", "type", new ArrayList<String>(), "repoUrl", "readOnlyUrl");
presenter.onRepositorySelected(projectData);
verify(dataObject).setName(eq("name"));
verify(dataObject).setDescription(eq("description"));
verify(source).setLocation(eq("repoUrl"));
verify(view).setProjectName(anyString());
verify(view).setProjectDescription(anyString());
verify(view).setProjectUrl(anyString());
verify(updateDelegate).updateControls();
}
Aggregations