KogitoScenarioSimulationBuilder { protected static double getColumnWidth(String expressionIdentifierName) { ExpressionIdentifier.NAME expressionName; try { expressionName = ExpressionIdentifier.NAME.valueOf(expressionIdentifierName); } catch (IllegalArgumentException e) { expressionName = ExpressionIdentifier.NAME.Other; } switch (expressionName) { case Index: return 70; case Description: return 300; default: return 114; } }  void populateScenarioSimulationModel(final ScenarioSimulationModel content, final ScenarioSimulationModel.Type type, final String value, RemoteCallback<String> callback);  }
@Test public void getColumn() { assertEquals(70, KogitoScenarioSimulationBuilder.getColumnWidth(ExpressionIdentifier.NAME.Index.toString()), 0); assertEquals(300, KogitoScenarioSimulationBuilder.getColumnWidth(ExpressionIdentifier.NAME.Description.toString()), 0); assertEquals(114, KogitoScenarioSimulationBuilder.getColumnWidth(ExpressionIdentifier.NAME.Other.toString()), 0); assertEquals(114, KogitoScenarioSimulationBuilder.getColumnWidth(ExpressionIdentifier.NAME.Expected.toString()), 0); assertEquals(114, KogitoScenarioSimulationBuilder.getColumnWidth(ExpressionIdentifier.NAME.Given.toString()), 0); assertEquals(114, KogitoScenarioSimulationBuilder.getColumnWidth("test"), 0); }