@Test public void testSetMemory() { final List<String> command = newBuilder() .setMemory(300) .build(); assertMemoryOption(command, "300m"); }
@Override @SuppressWarnings("checkstyle:hiddenfield") public JavaLaunchCommandBuilder setMemory(final int megaBytes) { return addOption(JVMOption.parse("-Xmx" + megaBytes + "m")); }
JavaLaunchCommandBuilder implements LaunchCommandBuilder { @Override @SuppressWarnings("checkstyle:hiddenfield") public JavaLaunchCommandBuilder setMemory(final int megaBytes) { return addOption(JVMOption.parse("-Xmx" + megaBytes + "m")); } }
JavaLaunchCommandBuilder implements LaunchCommandBuilder { @Override @SuppressWarnings("checkstyle:hiddenfield") public JavaLaunchCommandBuilder setMemory(final int megaBytes) { return addOption(JVMOption.parse("-Xmx" + megaBytes + "m")); } JavaLaunchCommandBuilder();  JavaLaunchCommandBuilder(final List<String> commandPrefixList);  JavaLaunchCommandBuilder(final Class launcherClass, final List<String> commandPrefixList); }
JavaLaunchCommandBuilder implements LaunchCommandBuilder { @Override @SuppressWarnings("checkstyle:hiddenfield") public JavaLaunchCommandBuilder setMemory(final int megaBytes) { return addOption(JVMOption.parse("-Xmx" + megaBytes + "m")); } JavaLaunchCommandBuilder();  JavaLaunchCommandBuilder(final List<String> commandPrefixList);  JavaLaunchCommandBuilder(final Class launcherClass, final List<String> commandPrefixList); @Override List<String> build(); @Override @SuppressWarnings("checkstyle:hiddenfield") JavaLaunchCommandBuilder setMemory(final int megaBytes); @Override JavaLaunchCommandBuilder setConfigurationFilePaths(final List<String> configurationPaths); @Override JavaLaunchCommandBuilder setStandardOut(final String standardOut); @Override JavaLaunchCommandBuilder setStandardErr(final String standardErr); JavaLaunchCommandBuilder setJavaPath(final String path); JavaLaunchCommandBuilder setClassPath(final String classPath); JavaLaunchCommandBuilder setClassPath(final Collection<String> classPathElements); JavaLaunchCommandBuilder addOption(final String option); @SuppressWarnings("checkstyle:hiddenfield") JavaLaunchCommandBuilder enableAssertions(final boolean assertionsEnabled); }
JavaLaunchCommandBuilder implements LaunchCommandBuilder { @Override @SuppressWarnings("checkstyle:hiddenfield") public JavaLaunchCommandBuilder setMemory(final int megaBytes) { return addOption(JVMOption.parse("-Xmx" + megaBytes + "m")); } JavaLaunchCommandBuilder();  JavaLaunchCommandBuilder(final List<String> commandPrefixList);  JavaLaunchCommandBuilder(final Class launcherClass, final List<String> commandPrefixList); @Override List<String> build(); @Override @SuppressWarnings("checkstyle:hiddenfield") JavaLaunchCommandBuilder setMemory(final int megaBytes); @Override JavaLaunchCommandBuilder setConfigurationFilePaths(final List<String> configurationPaths); @Override JavaLaunchCommandBuilder setStandardOut(final String standardOut); @Override JavaLaunchCommandBuilder setStandardErr(final String standardErr); JavaLaunchCommandBuilder setJavaPath(final String path); JavaLaunchCommandBuilder setClassPath(final String classPath); JavaLaunchCommandBuilder setClassPath(final Collection<String> classPathElements); JavaLaunchCommandBuilder addOption(final String option); @SuppressWarnings("checkstyle:hiddenfield") JavaLaunchCommandBuilder enableAssertions(final boolean assertionsEnabled);  }