@Test public void testCreate() { when(translationService.format(DMNDocumentationI18n_DmnModelDocumentation)).thenReturn("DMN model documentation"); when(translationService.format(DMNDocumentationI18n_GeneratedOn)).thenReturn("Generated on:"); when(translationService.format(DMNDocumentationI18n_GeneratedBy)).thenReturn("Generated by:"); when(translationService.format(DMNDocumentationI18n_GeneratedFrom)).thenReturn("Generated from:"); when(translationService.format(DMNDocumentationI18n_Namespace)).thenReturn("Namespace:"); when(translationService.format(DMNDocumentationI18n_TableOfContents)).thenReturn("Table of contents"); when(translationService.format(DMNDocumentationI18n_DmnModel)).thenReturn("DMN model"); when(translationService.format(DMNDocumentationI18n_DataTypes)).thenReturn("Data Types"); when(translationService.format(DMNDocumentationI18n_DrdComponents)).thenReturn("DRD components"); when(translationService.format(DMNDocumentationI18n_NoDataTypes)).thenReturn("No data types."); when(translationService.format(DMNDocumentationI18n_NoDRDs)).thenReturn("No DRDs components."); when(translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements)).thenReturn("Diagram does not have any element."); final DMNDocumentationI18n i18n = DMNDocumentationI18n.create(translationService); assertEquals("DMN model documentation", i18n.getDmnModelDocumentation()); assertEquals("Generated on:", i18n.getGeneratedOn()); assertEquals("Generated by:", i18n.getGeneratedBy()); assertEquals("Generated from:", i18n.getGeneratedFrom()); assertEquals("Namespace:", i18n.getNamespace()); assertEquals("Table of contents", i18n.getTableOfContents()); assertEquals("DMN model", i18n.getDmnModel()); assertEquals("Data Types", i18n.getDataTypes()); assertEquals("DRD components", i18n.getDrdComponents()); assertEquals("No data types.", i18n.getNoDataTypes()); assertEquals("No DRDs components.", i18n.getNoDRDs()); assertEquals("Diagram does not have any element.", i18n.getDiagramDoesNotHaveElements()); }
@JsOverlay public static DMNDocumentationI18n create(final TranslationService translationService) { final DMNDocumentationI18n i18n = new DMNDocumentationI18n(); i18n.dmnModelDocumentation = translationService.format(DMNDocumentationI18n_DmnModelDocumentation); i18n.generatedOn = translationService.format(DMNDocumentationI18n_GeneratedOn); i18n.generatedBy = translationService.format(DMNDocumentationI18n_GeneratedBy); i18n.generatedFrom = translationService.format(DMNDocumentationI18n_GeneratedFrom); i18n.namespace = translationService.format(DMNDocumentationI18n_Namespace); i18n.tableOfContents = translationService.format(DMNDocumentationI18n_TableOfContents); i18n.dmnModel = translationService.format(DMNDocumentationI18n_DmnModel); i18n.dataTypes = translationService.format(DMNDocumentationI18n_DataTypes); i18n.drdComponents = translationService.format(DMNDocumentationI18n_DrdComponents); i18n.noDataTypes = translationService.format(DMNDocumentationI18n_NoDataTypes); i18n.noDRDs = translationService.format(DMNDocumentationI18n_NoDRDs); i18n.diagramDoesNotHaveElements = translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements); i18n.noExternalLinks = translationService.format(DMNDocumentationI18n_NoExternalLinks); i18n.externalLinks = translationService.format(DMNDocumentationI18n_ExternalLinks); return i18n; }
DMNDocumentationI18n { @JsOverlay public static DMNDocumentationI18n create(final TranslationService translationService) { final DMNDocumentationI18n i18n = new DMNDocumentationI18n(); i18n.dmnModelDocumentation = translationService.format(DMNDocumentationI18n_DmnModelDocumentation); i18n.generatedOn = translationService.format(DMNDocumentationI18n_GeneratedOn); i18n.generatedBy = translationService.format(DMNDocumentationI18n_GeneratedBy); i18n.generatedFrom = translationService.format(DMNDocumentationI18n_GeneratedFrom); i18n.namespace = translationService.format(DMNDocumentationI18n_Namespace); i18n.tableOfContents = translationService.format(DMNDocumentationI18n_TableOfContents); i18n.dmnModel = translationService.format(DMNDocumentationI18n_DmnModel); i18n.dataTypes = translationService.format(DMNDocumentationI18n_DataTypes); i18n.drdComponents = translationService.format(DMNDocumentationI18n_DrdComponents); i18n.noDataTypes = translationService.format(DMNDocumentationI18n_NoDataTypes); i18n.noDRDs = translationService.format(DMNDocumentationI18n_NoDRDs); i18n.diagramDoesNotHaveElements = translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements); i18n.noExternalLinks = translationService.format(DMNDocumentationI18n_NoExternalLinks); i18n.externalLinks = translationService.format(DMNDocumentationI18n_ExternalLinks); return i18n; } }
DMNDocumentationI18n { @JsOverlay public static DMNDocumentationI18n create(final TranslationService translationService) { final DMNDocumentationI18n i18n = new DMNDocumentationI18n(); i18n.dmnModelDocumentation = translationService.format(DMNDocumentationI18n_DmnModelDocumentation); i18n.generatedOn = translationService.format(DMNDocumentationI18n_GeneratedOn); i18n.generatedBy = translationService.format(DMNDocumentationI18n_GeneratedBy); i18n.generatedFrom = translationService.format(DMNDocumentationI18n_GeneratedFrom); i18n.namespace = translationService.format(DMNDocumentationI18n_Namespace); i18n.tableOfContents = translationService.format(DMNDocumentationI18n_TableOfContents); i18n.dmnModel = translationService.format(DMNDocumentationI18n_DmnModel); i18n.dataTypes = translationService.format(DMNDocumentationI18n_DataTypes); i18n.drdComponents = translationService.format(DMNDocumentationI18n_DrdComponents); i18n.noDataTypes = translationService.format(DMNDocumentationI18n_NoDataTypes); i18n.noDRDs = translationService.format(DMNDocumentationI18n_NoDRDs); i18n.diagramDoesNotHaveElements = translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements); i18n.noExternalLinks = translationService.format(DMNDocumentationI18n_NoExternalLinks); i18n.externalLinks = translationService.format(DMNDocumentationI18n_ExternalLinks); return i18n; }  }
DMNDocumentationI18n { @JsOverlay public static DMNDocumentationI18n create(final TranslationService translationService) { final DMNDocumentationI18n i18n = new DMNDocumentationI18n(); i18n.dmnModelDocumentation = translationService.format(DMNDocumentationI18n_DmnModelDocumentation); i18n.generatedOn = translationService.format(DMNDocumentationI18n_GeneratedOn); i18n.generatedBy = translationService.format(DMNDocumentationI18n_GeneratedBy); i18n.generatedFrom = translationService.format(DMNDocumentationI18n_GeneratedFrom); i18n.namespace = translationService.format(DMNDocumentationI18n_Namespace); i18n.tableOfContents = translationService.format(DMNDocumentationI18n_TableOfContents); i18n.dmnModel = translationService.format(DMNDocumentationI18n_DmnModel); i18n.dataTypes = translationService.format(DMNDocumentationI18n_DataTypes); i18n.drdComponents = translationService.format(DMNDocumentationI18n_DrdComponents); i18n.noDataTypes = translationService.format(DMNDocumentationI18n_NoDataTypes); i18n.noDRDs = translationService.format(DMNDocumentationI18n_NoDRDs); i18n.diagramDoesNotHaveElements = translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements); i18n.noExternalLinks = translationService.format(DMNDocumentationI18n_NoExternalLinks); i18n.externalLinks = translationService.format(DMNDocumentationI18n_ExternalLinks); return i18n; }  @JsOverlay static DMNDocumentationI18n create(final TranslationService translationService); @JsOverlay final String getGeneratedOn(); @JsOverlay final String getGeneratedBy(); @JsOverlay final String getGeneratedFrom(); @JsOverlay final String getNamespace(); @JsOverlay final String getDmnModelDocumentation(); @JsOverlay final String getTableOfContents(); @JsOverlay final String getDmnModel(); @JsOverlay final String getDataTypes(); @JsOverlay final String getDrdComponents(); @JsOverlay final String getNoDataTypes(); @JsOverlay final String getNoDRDs(); @JsOverlay final String getDiagramDoesNotHaveElements(); @JsOverlay final String getNoExternalLinks(); @JsOverlay final String getExternalLinks(); }
DMNDocumentationI18n { @JsOverlay public static DMNDocumentationI18n create(final TranslationService translationService) { final DMNDocumentationI18n i18n = new DMNDocumentationI18n(); i18n.dmnModelDocumentation = translationService.format(DMNDocumentationI18n_DmnModelDocumentation); i18n.generatedOn = translationService.format(DMNDocumentationI18n_GeneratedOn); i18n.generatedBy = translationService.format(DMNDocumentationI18n_GeneratedBy); i18n.generatedFrom = translationService.format(DMNDocumentationI18n_GeneratedFrom); i18n.namespace = translationService.format(DMNDocumentationI18n_Namespace); i18n.tableOfContents = translationService.format(DMNDocumentationI18n_TableOfContents); i18n.dmnModel = translationService.format(DMNDocumentationI18n_DmnModel); i18n.dataTypes = translationService.format(DMNDocumentationI18n_DataTypes); i18n.drdComponents = translationService.format(DMNDocumentationI18n_DrdComponents); i18n.noDataTypes = translationService.format(DMNDocumentationI18n_NoDataTypes); i18n.noDRDs = translationService.format(DMNDocumentationI18n_NoDRDs); i18n.diagramDoesNotHaveElements = translationService.format(DMNDocumentationI18n_DiagramDoesNotHaveElements); i18n.noExternalLinks = translationService.format(DMNDocumentationI18n_NoExternalLinks); i18n.externalLinks = translationService.format(DMNDocumentationI18n_ExternalLinks); return i18n; }  @JsOverlay static DMNDocumentationI18n create(final TranslationService translationService); @JsOverlay final String getGeneratedOn(); @JsOverlay final String getGeneratedBy(); @JsOverlay final String getGeneratedFrom(); @JsOverlay final String getNamespace(); @JsOverlay final String getDmnModelDocumentation(); @JsOverlay final String getTableOfContents(); @JsOverlay final String getDmnModel(); @JsOverlay final String getDataTypes(); @JsOverlay final String getDrdComponents(); @JsOverlay final String getNoDataTypes(); @JsOverlay final String getNoDRDs(); @JsOverlay final String getDiagramDoesNotHaveElements(); @JsOverlay final String getNoExternalLinks(); @JsOverlay final String getExternalLinks();  }