优化测试
This commit is contained in:
parent
b5969c279c
commit
62602b7270
|
|
@ -61,26 +61,17 @@ public class SapMetaPrintTest {
|
||||||
}
|
}
|
||||||
printTable(data);
|
printTable(data);
|
||||||
fields.forEach(field->{
|
fields.forEach(field->{
|
||||||
|
print("★★ {}({}) 参数", field.getName(), field.getDescription());
|
||||||
if (field.isTable()){
|
if (field.isTable()){
|
||||||
printJCoTable(field);
|
print(field.getTable().getRecordFieldIterator());
|
||||||
}else if (field.isStructure()){
|
}else if (field.isStructure()){
|
||||||
printStructure(field);
|
print(field.getStructure().getRecordFieldIterator());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printJCoTable(JCoParameterField pfield){
|
|
||||||
print("★★ {}({}) 参数", pfield.getName(),pfield.getDescription());
|
|
||||||
print(pfield.getTable().getRecordFieldIterator());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void printStructure(JCoParameterField pfield){
|
|
||||||
print("★★ {}({}) 参数", pfield.getName(),pfield.getDescription());
|
|
||||||
print(pfield.getStructure().getRecordFieldIterator());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void print(JCoRecordFieldIterator iterator){
|
private void print(JCoRecordFieldIterator iterator){
|
||||||
List<String[]> data = new ArrayList<>();
|
List<String[]> data = new ArrayList<>();
|
||||||
while (iterator.hasNextField()) {
|
while (iterator.hasNextField()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue