@Test public void testDmnFromWB(){ final String text = "text"; final Text textObject = new Text(text); when(ruleAnnotationClauseText.getText()).thenReturn(textObject); final RuleAnnotation converted = RuleAnnotationClauseTextConverter.dmnFromWB(ruleAnnotationClauseText); assertEquals(text, converted.getText()); }
public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) { if (wb == null) { return null; } final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation(); ruleAnnotation.setText(wb.getText().getValue()); return ruleAnnotation; }
RuleAnnotationClauseTextConverter { public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) { if (wb == null) { return null; } final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation(); ruleAnnotation.setText(wb.getText().getValue()); return ruleAnnotation; } }
RuleAnnotationClauseTextConverter { public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) { if (wb == null) { return null; } final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation(); ruleAnnotation.setText(wb.getText().getValue()); return ruleAnnotation; }  }
RuleAnnotationClauseTextConverter { public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) { if (wb == null) { return null; } final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation(); ruleAnnotation.setText(wb.getText().getValue()); return ruleAnnotation; }  static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation); static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb); }
RuleAnnotationClauseTextConverter { public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) { if (wb == null) { return null; } final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation(); ruleAnnotation.setText(wb.getText().getValue()); return ruleAnnotation; }  static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation); static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb);  }