1 | void setAppendError(boolean error) {↵ | | 1 | void setDoNotSetUpTearDown(boolean setup){↵
|
2 | setProperty(APPEND_ERROR,String.valueOf(error));↵ | | 2 | setProperty(DOSETUP,String.valueOf(setup));↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * If append exception is not set, by default it is set to false.↵ | | 5 | * If append error is not set, by default it is set to false,↵
|
6 | * Users have to explicitly set it to true to see the exceptions↵ | | 6 | * which means users have to explicitly set ↵
|
7 | * in the result tree.↵ | | 7 | the sampler to↵
|
| | | 8 | * append the assert errors. Because of how junit works, there↵
|
| | | 9 | * should only be one error↵
|
8 | */↵ | | 10 | */↵
|
9 | public boolean getAppendException() {↵ | | 11 | public boolean getAppendError() {↵
|
10 | return getPropertyAsBoolean(APPEND_EXCEPTION,false);↵ | | 12 | return getPropertyAsBoolean(APPEND_ERROR,false);↵
|
11 | }↵ | | 13 | }↵
|
12 | ↵ | | 14 | ↵
|
13 | public void setAppendException(boolean exc) {↵ | | 15 | public void setAppendError(boolean error) {↵
|
14 | setProperty(APPEND_EXCEPTION,String.valueOf(exc));↵ | | 16 | setProperty(APPEND_ERROR,String.valueOf(error));↵
|
15 | | | 17 |
|