Generation

code to explanationThu, 16 Feb 2023

private void writeGlobalDerivationRoutesForOtherTestEnv(BufferedWriter writer) throws IOException { String[] environments = { "BTPRD", "SUP", "DEV", "DES", "INT" }; String[] suffixes = { "R", "T", "D", "S", "I" }; String[] physicalRoutes = { StringUtils.EMPTY, StringUtils.EMPTY, PHYSICAL_ROUTE_DEV, PHYSICAL_ROUTE_DEV, PHYSICAL_ROUTE_DEV }; for (int i = 0; i < environments.length; i++) { String derivationRouteSuffix = "_" + environments[i]; String globalDerivationRoute = MessageFormat.format(UNIQUE_DERIVATION_ROUTE, derivationRouteSuffix, physicalRoutes[i], suffixes[i]); writer.write(globalDerivationRoute); writer.newLine(); } }

The function writeGlobalDerivationRoutesForOtherTestEnv is used to write the global derivation routes for the other test environments.

Questions about programming?Chat with your personal AI assistant