Class FakeNewVersionAvailabilityProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.fakes.FakeNewVersionAvailabilityProvider
-
- All Implemented Interfaces:
NewVersionAvailabilityProvider
public class FakeNewVersionAvailabilityProvider extends Object implements NewVersionAvailabilityProvider
-
-
Constructor Summary
Constructors Constructor Description FakeNewVersionAvailabilityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForUpdates()
Perform an unscheduled check for updatesDate
getLastCheckDate()
String
getLastCheckError()
List<UpdateOption>
getUpdateOptions()
void
setUpgradeAvailable(UpdateOption updateOption)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.updates.NewVersionAvailabilityProvider
getUpdateOption, getUpdateOption, isUpdateAvailable
-
-
-
-
Method Detail
-
getUpdateOptions
@NotNull public List<UpdateOption> getUpdateOptions()
- Specified by:
getUpdateOptions
in interfaceNewVersionAvailabilityProvider
- Returns:
- all available update options
-
checkForUpdates
public void checkForUpdates()
Description copied from interface:NewVersionAvailabilityProvider
Perform an unscheduled check for updates- Specified by:
checkForUpdates
in interfaceNewVersionAvailabilityProvider
-
getLastCheckError
@Nullable public String getLastCheckError()
- Specified by:
getLastCheckError
in interfaceNewVersionAvailabilityProvider
- Returns:
- error when last check failed, null otherwise
-
getLastCheckDate
@Nullable public Date getLastCheckDate()
- Specified by:
getLastCheckDate
in interfaceNewVersionAvailabilityProvider
- Returns:
- last check timestamp, null if have not checked yet
-
setUpgradeAvailable
public void setUpgradeAvailable(UpdateOption updateOption)
-
-