@Test public void testWbFromDMN() { final String text = "text"; when(ruleAnnotation.getText()).thenReturn(text); final RuleAnnotationClauseText converted = RuleAnnotationClauseTextConverter.wbFromDMN(ruleAnnotation); assertEquals(text, converted.getText().getValue()); }
public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; }
RuleAnnotationClauseTextConverter { public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; } }
RuleAnnotationClauseTextConverter { public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; }  }
RuleAnnotationClauseTextConverter { public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; }  static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation); static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb); }
RuleAnnotationClauseTextConverter { public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; }  static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation); static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb);  }