public class MockHubService extends Object implements HubService
| Modifier and Type | Field and Description |
|---|---|
static UUID |
alreadyRegisteredUUID |
static String |
apiKey |
static UUID |
deletedUUID |
static UUID |
failUUID |
static HubChangeLog |
lastCreatedChangelog |
static UUID |
notFoundChangeLogUUID |
static Integer |
numberOfProjectsInList |
boolean |
online |
static Date |
operationCreateDate |
static UUID |
organizationId |
static UUID |
randomUUID |
List<HubChangeLog> |
returnChangeLogs |
List<Connection> |
returnConnections |
List<Project> |
returnProjects |
static SortedMap<String,List> |
sentObjects |
PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZEDCOMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
MockHubService() |
public static UUID randomUUID
public static UUID deletedUUID
public static UUID alreadyRegisteredUUID
public static UUID failUUID
public static UUID notFoundChangeLogUUID
public static Date operationCreateDate
public static String apiKey
public static UUID organizationId
public static Integer numberOfProjectsInList
public static HubChangeLog lastCreatedChangelog
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 Project findProjectByConnectionIdOrJdbcUrl(UUID connectionId, String jdbcUrl) throws LiquibaseHubException
findProjectByConnectionIdOrJdbcUrl in interface HubServiceLiquibaseHubExceptionpublic HubRegisterResponse register(String email) throws LiquibaseHubException
register in interface HubServiceLiquibaseHubExceptionpublic HubChangeLog deactivateChangeLog(HubChangeLog hubChangeLog) throws LiquibaseHubException
deactivateChangeLog 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 HubChangeLog getHubChangeLog(UUID changeLogId, String includeStatus) throws LiquibaseHubException
getHubChangeLog in interface HubServiceLiquibaseHubExceptionpublic Operation createOperation(String operationType, String operationCommand, HubChangeLog changeLog, Connection connection) throws LiquibaseHubException
createOperation in interface HubServiceLiquibaseHubExceptionpublic Operation createOperationInOrganization(String operationType, String operationCommand, UUID organizationId) throws LiquibaseHubException
createOperationInOrganization 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 String shortenLink(String url) throws LiquibaseException
HubServiceshortenLink in interface HubServiceurl - The link to shortenLiquibaseHubException - If shortening failsLiquibaseExceptionpublic OperationEvent sendOperationEvent(Operation operation, OperationEvent operationEvent, UUID organizationId) throws LiquibaseException
sendOperationEvent in interface HubServiceLiquibaseExceptionpublic CoreInitOnboardingResponse validateOnboardingToken(String token) throws LiquibaseHubException
validateOnboardingToken in interface HubServiceLiquibaseHubExceptionpublic void reset()
Copyright © 2023 Liquibase.org. All rights reserved.