Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-31999] fixed deprecated unit tests
  • Loading branch information
cpoenisch committed May 19, 2016
1 parent 6ef4aa7 commit af03318
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
Expand Up @@ -61,7 +61,7 @@ public abstract class AbstractToolBuilder extends Builder implements SimpleBuild
@Nonnull
private final String toolName;
@Nonnull
private String timeout = String.valueOf(getDescriptor().getDefaultTimeout());
private String timeout = String.valueOf(getDefaultTimeout());

/**
* Instantiates a {@link AbstractToolBuilder}.
Expand Down Expand Up @@ -115,6 +115,13 @@ public void setTimeout(@Nonnull final String timeout) {
this.timeout = timeout;
}

/**
* Gets the default timeout.
*
* @return the default timeout
*/
public abstract int getDefaultTimeout();

/**
* Gets the test identifier by the size of {@link ToolEnvInvisibleAction}s already added to the build.
*
Expand Down
Expand Up @@ -149,6 +149,7 @@ public final Object readResolve() {
/**
* @return the default timeout
*/
@Override
public int getDefaultTimeout() {
return DEFAULT_TIMEOUT;
}
Expand Down
Expand Up @@ -112,6 +112,7 @@ public StartTSBuilder(final String toolName, final String timeout, final String
/**
* @return the default timeout
*/
@Override
public int getDefaultTimeout() {
return DEFAULT_TIMEOUT;
}
Expand Down
Expand Up @@ -90,6 +90,7 @@ public StopETBuilder(final String toolName, final String timeout) {
/**
* @return the default timeout
*/
@Override
public int getDefaultTimeout() {
return DEFAULT_TIMEOUT;
}
Expand Down
Expand Up @@ -90,6 +90,7 @@ public StopTSBuilder(final String toolName, final String timeout) {
/**
* @return the default timeout
*/
@Override
public int getDefaultTimeout() {
return DEFAULT_TIMEOUT;
}
Expand Down

0 comments on commit af03318

Please sign in to comment.