use of uk.ivanc.archimvp.model.Repository in project archi by ivacf.
the class MockModelFabric method newRepository.
public static Repository newRepository(String name) {
Random random = new Random();
Repository repository = new Repository();
repository.name = name;
repository.id = random.nextInt(10000);
repository.description = "Description for " + name;
repository.watchers = random.nextInt(100);
repository.forks = random.nextInt(100);
repository.stars = random.nextInt(100);
repository.owner = newUser("User-" + name);
return repository;
}
Aggregations