|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.repository.testframework.FakeProgressIndicator
public class FakeProgressIndicator
Fake ProgressIndicator that keeps track of the messages that were logged to it, and
provides a convenient method for asserting that no errors or warnings occurred.
| Constructor Summary | |
|---|---|
FakeProgressIndicator()
|
|
| Method Summary | |
|---|---|
void |
assertNoErrors()
assert that no errors have been logged. |
void |
assertNoErrorsOrWarnings()
assert that no errors or warnings have been logged. |
void |
cancel()
Try to cancel this operation. |
java.util.List<java.lang.String> |
getErrors()
|
double |
getFraction()
|
java.util.List<java.lang.String> |
getInfos()
|
java.util.List<java.lang.String> |
getWarnings()
|
boolean |
isCanceled()
|
boolean |
isCancellable()
|
boolean |
isIndeterminate()
|
void |
logError(java.lang.String s)
Logs an error. |
void |
logError(java.lang.String s,
java.lang.Throwable e)
Logs an error, including a stacktrace. |
void |
logInfo(java.lang.String s)
Logs an info message. |
void |
logWarning(java.lang.String s)
Logs a warning. |
void |
logWarning(java.lang.String s,
java.lang.Throwable e)
Logs a warning, including a stacktrace. |
void |
setCancellable(boolean cancellable)
Sets whether the user should be able to cancel this operation. |
void |
setFraction(double v)
Sets how much progress should be shown on the progress bar, between 0 and 1. |
void |
setIndeterminate(boolean indeterminate)
Sets whether this progress indicator should show indeterminate progress. |
void |
setSecondaryText(java.lang.String s)
Sets the secondary text on the progress indicator. |
void |
setText(java.lang.String s)
Sets the main text shown in the progress indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FakeProgressIndicator()
| Method Detail |
|---|
public void setText(java.lang.String s)
ProgressIndicator
setText in interface ProgressIndicatorpublic boolean isCanceled()
isCanceled in interface ProgressIndicatorpublic void cancel()
ProgressIndicator
cancel in interface ProgressIndicatorpublic void setCancellable(boolean cancellable)
ProgressIndicator
setCancellable in interface ProgressIndicatorpublic boolean isCancellable()
isCancellable in interface ProgressIndicatorpublic void setFraction(double v)
ProgressIndicator
setFraction in interface ProgressIndicatorpublic double getFraction()
getFraction in interface ProgressIndicatorpublic void setSecondaryText(java.lang.String s)
ProgressIndicator
setSecondaryText in interface ProgressIndicator
public void logWarning(@NonNull
java.lang.String s)
ProgressIndicator
logWarning in interface ProgressIndicator
public void logWarning(@NonNull
java.lang.String s,
java.lang.Throwable e)
ProgressIndicator
logWarning in interface ProgressIndicator
public void logError(@NonNull
java.lang.String s)
ProgressIndicator
logError in interface ProgressIndicator
public void logError(@NonNull
java.lang.String s,
java.lang.Throwable e)
ProgressIndicator
logError in interface ProgressIndicator
public void logInfo(@NonNull
java.lang.String s)
ProgressIndicator
logInfo in interface ProgressIndicatorpublic boolean isIndeterminate()
isIndeterminate in interface ProgressIndicatorpublic void setIndeterminate(boolean indeterminate)
ProgressIndicator
setIndeterminate in interface ProgressIndicatorpublic java.util.List<java.lang.String> getInfos()
public java.util.List<java.lang.String> getWarnings()
public java.util.List<java.lang.String> getErrors()
public void assertNoErrorsOrWarnings()
assert that no errors or warnings have been logged.
public void assertNoErrors()
assert that no errors have been logged.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||