public class MockHubService extends Object implements HubService
| Modifier and Type | Field and Description |
|---|---|
boolean |
online |
static Date |
operationCreateDate |
static UUID |
randomUUID |
List<HubChangeLog> |
returnChangeLogs |
List<Connection> |
returnConnections |
List<Project> |
returnProjects |
SortedMap<String,List> |
sentObjects |
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZEDCOMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
MockHubService() |
| Modifier and Type | Method and Description |
|---|---|
HubChangeLog |
createChangeLog(HubChangeLog hubChangeLog) |
Connection |
createConnection(Connection connection) |
Operation |
createOperation(String operationType,
HubChangeLog changeLog,
Connection connection) |
Project |
createProject(Project project) |
Connection |
getConnection(Connection exampleConnection,
boolean createIfNotExists) |
List<Connection> |
getConnections(Connection exampleConnection) |
HubChangeLog |
getHubChangeLog(UUID changeLogId) |
HubUser |
getMe() |
Organization |
getOrganization() |
int |
getPriority() |
Project |
getProject(UUID projectId) |
List<Project> |
getProjects() |
boolean |
isOnline() |
void |
reset() |
void |
sendOperationChangeEvent(OperationChangeEvent operationChangeEvent) |
void |
sendOperationChanges(OperationChange operationChange) |
OperationEvent |
sendOperationEvent(Operation operation,
OperationEvent operationEvent) |
void |
setRanChangeSets(Connection connectionId,
List<RanChangeSet> ranChangeSets) |
public static UUID randomUUID
public static Date operationCreateDate
public List<Connection> returnConnections
public List<HubChangeLog> returnChangeLogs
public boolean online
public int getPriority()
getPriority in interface PrioritizedServicepublic boolean isOnline()
isOnline in interface HubServicepublic HubUser getMe() throws LiquibaseHubException
getMe in interface HubServiceLiquibaseHubExceptionpublic Organization getOrganization() throws LiquibaseHubException
getOrganization in interface HubServiceLiquibaseHubExceptionpublic Project createProject(Project project)
createProject in interface HubServicepublic HubChangeLog createChangeLog(HubChangeLog hubChangeLog) throws LiquibaseException
createChangeLog in interface HubServiceLiquibaseExceptionpublic List<Project> getProjects() throws LiquibaseHubException
getProjects in interface HubServiceLiquibaseHubExceptionpublic Project getProject(UUID projectId) throws LiquibaseHubException
getProject in interface HubServiceLiquibaseHubExceptionpublic void setRanChangeSets(Connection connectionId, List<RanChangeSet> ranChangeSets) throws LiquibaseHubException
setRanChangeSets in interface HubServiceLiquibaseHubExceptionpublic List<Connection> getConnections(Connection exampleConnection)
getConnections in interface HubServicepublic Connection getConnection(Connection exampleConnection, boolean createIfNotExists) throws LiquibaseHubException
getConnection in interface HubServiceLiquibaseHubExceptionpublic Connection createConnection(Connection connection) throws LiquibaseHubException
createConnection in interface HubServiceLiquibaseHubExceptionpublic HubChangeLog getHubChangeLog(UUID changeLogId) throws LiquibaseHubException
getHubChangeLog in interface HubServiceLiquibaseHubExceptionpublic Operation createOperation(String operationType, HubChangeLog changeLog, Connection connection) throws LiquibaseHubException
createOperation in interface HubServiceLiquibaseHubExceptionpublic OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent) throws LiquibaseException
sendOperationEvent in interface HubServiceLiquibaseExceptionpublic void sendOperationChangeEvent(OperationChangeEvent operationChangeEvent) throws LiquibaseException
sendOperationChangeEvent in interface HubServiceLiquibaseExceptionpublic void sendOperationChanges(OperationChange operationChange) throws LiquibaseHubException
sendOperationChanges in interface HubServiceLiquibaseHubExceptionpublic void reset()
Copyright © 2020 Liquibase.org. All rights reserved.