mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
added simple repository integration test
This commit is contained in:
@@ -40,6 +40,37 @@ package sonia.scm.repository;
|
||||
public class RepositoryTestData
|
||||
{
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static Repository create42Puzzle()
|
||||
{
|
||||
return create42Puzzle(DummyRepositoryHandler.TYPE_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param type
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static Repository create42Puzzle(String type)
|
||||
{
|
||||
Repository repository = new Repository();
|
||||
|
||||
repository.setType(type);
|
||||
repository.setContact("douglas.adams@hitchhiker.com");
|
||||
repository.setName("42Puzzle");
|
||||
repository.setDescription("The 42 Puzzle");
|
||||
|
||||
return repository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -47,10 +78,24 @@ public class RepositoryTestData
|
||||
* @return
|
||||
*/
|
||||
public static Repository createHappyVerticalPeopleTransporter()
|
||||
{
|
||||
return createHappyVerticalPeopleTransporter(
|
||||
DummyRepositoryHandler.TYPE_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public static Repository createHappyVerticalPeopleTransporter(String type)
|
||||
{
|
||||
Repository happyVerticalPeopleTransporter = new Repository();
|
||||
|
||||
happyVerticalPeopleTransporter.setType(DummyRepositoryHandler.TYPE_NAME);
|
||||
happyVerticalPeopleTransporter.setType(type);
|
||||
happyVerticalPeopleTransporter.setContact(
|
||||
"zaphod.beeblebrox@hitchhiker.com");
|
||||
happyVerticalPeopleTransporter.setName("happyVerticalPeopleTransporter");
|
||||
@@ -69,10 +114,23 @@ public class RepositoryTestData
|
||||
* @return
|
||||
*/
|
||||
public static Repository createHeartOfGold()
|
||||
{
|
||||
return createHeartOfGold(DummyRepositoryHandler.TYPE_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public static Repository createHeartOfGold(String type)
|
||||
{
|
||||
Repository heartOfGold = new Repository();
|
||||
|
||||
heartOfGold.setType(DummyRepositoryHandler.TYPE_NAME);
|
||||
heartOfGold.setType(type);
|
||||
heartOfGold.setContact("zaphod.beeblebrox@hitchhiker.com");
|
||||
heartOfGold.setName("HeartOfGold");
|
||||
heartOfGold.setDescription(
|
||||
|
||||
Reference in New Issue
Block a user