Skip to content

Commit

Permalink
add tests BpmnConfigMapperImplTest
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoBrancazi committed Nov 24, 2023
1 parent 9892591 commit 7c1943d
Showing 1 changed file with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.UUID;

import static org.junit.jupiter.api.Assertions.*;
Expand Down Expand Up @@ -173,4 +175,60 @@ public void bpmnBankConfigBpmnBankConfigPKTerminalId_null_TerminalId(){
assertNull(resource.getTerminalId());
}


@Test
public void testBpmnBankConfigBpmnBankConfigPKAcquirerId() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {

Method privateMethod = BpmnConfigMapperImpl.class.getDeclaredMethod("bpmnBankConfigBpmnBankConfigPKAcquirerId", BpmnBankConfig.class);
privateMethod.setAccessible(true);

String result = (String) privateMethod.invoke(bpmnConfigMapperImpl, (Object) null);

assertNull(result);
}

@Test
public void testBpmnBankConfigBpmnBankConfigPKBpmnId() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {

Method privateMethod = BpmnConfigMapperImpl.class.getDeclaredMethod("bpmnBankConfigBpmnBankConfigPKBpmnId", BpmnBankConfig.class);
privateMethod.setAccessible(true);

String result = (String) privateMethod.invoke(bpmnConfigMapperImpl, (Object) null);

assertNull(result);
}

@Test
public void testBpmnBankConfigBpmnBankConfigPKBpmnModelVersion() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {

Method privateMethod = BpmnConfigMapperImpl.class.getDeclaredMethod("bpmnBankConfigBpmnBankConfigPKBpmnModelVersion", BpmnBankConfig.class);
privateMethod.setAccessible(true);

String result = (String) privateMethod.invoke(bpmnConfigMapperImpl, (Object) null);

assertNull(result);
}

@Test
public void testBpmnBankConfigBpmnBankConfigPKBranchId() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {

Method privateMethod = BpmnConfigMapperImpl.class.getDeclaredMethod("bpmnBankConfigBpmnBankConfigPKBranchId", BpmnBankConfig.class);
privateMethod.setAccessible(true);

String result = (String) privateMethod.invoke(bpmnConfigMapperImpl, (Object) null);

assertNull(result);
}

@Test
public void testBpmnBankConfigBpmnBankConfigPKTerminalId() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {

Method privateMethod = BpmnConfigMapperImpl.class.getDeclaredMethod("bpmnBankConfigBpmnBankConfigPKTerminalId", BpmnBankConfig.class);
privateMethod.setAccessible(true);

String result = (String) privateMethod.invoke(bpmnConfigMapperImpl, (Object) null);

assertNull(result);
}

}

0 comments on commit 7c1943d

Please sign in to comment.