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