private fields in node
This commit is contained in:
parent
d5fd311c75
commit
0912d0685f
@ -46,9 +46,9 @@ import java.util.concurrent.ExecutionException;
|
|||||||
)
|
)
|
||||||
public class TbRenameKeysNode implements TbNode {
|
public class TbRenameKeysNode implements TbNode {
|
||||||
|
|
||||||
TbRenameKeysNodeConfiguration config;
|
private TbRenameKeysNodeConfiguration config;
|
||||||
Map<String, String> renameKeysMapping;
|
private Map<String, String> renameKeysMapping;
|
||||||
boolean fromMetadata;
|
private boolean fromMetadata;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
|
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
|
||||||
|
|||||||
@ -66,11 +66,6 @@ public class TbRenameKeysNodeTest {
|
|||||||
node.destroy();
|
node.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void givenDefaultConfig_whenInit_thenOK() {
|
|
||||||
assertThat(node.config).isEqualTo(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenDefaultConfig_whenVerify_thenOK() {
|
void givenDefaultConfig_whenVerify_thenOK() {
|
||||||
TbRenameKeysNodeConfiguration defaultConfig = new TbRenameKeysNodeConfiguration().defaultConfiguration();
|
TbRenameKeysNodeConfiguration defaultConfig = new TbRenameKeysNodeConfiguration().defaultConfiguration();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user