/**
  * A profile container should have VM arguments.
  *
  * @throws Exception
  */
 public void testArgumentsProfileContainer() throws Exception {
   ITargetLocation profileContainer =
       getTargetService().newProfileLocation(TargetPlatform.getDefaultLocation(), null);
   String[] arguments = profileContainer.getVMArguments();
   assertNotNull("Profile containers should have arguments", arguments);
   assertTrue("Profile containers should have arguments", arguments.length > 0);
 }
 /**
  * A directory that points to an installation should have VM arguments.
  *
  * @throws Exception
  */
 public void testArgumentsInstallDirectory() throws Exception {
   ITargetLocation installDirectory =
       getTargetService().newDirectoryLocation(TargetPlatform.getDefaultLocation());
   String[] installArgs = installDirectory.getVMArguments();
   assertNotNull("Install directory should have arguments", installArgs);
   assertTrue("Install directory should have arguments", installArgs.length > 0);
 }
 /**
  * A feature container should not have VM arguments.
  *
  * @throws Exception
  */
 public void testArgumentsFeatureContainer() throws Exception {
   ITargetLocation featureContainer =
       getTargetService()
           .newFeatureLocation(
               TargetPlatform.getDefaultLocation(), "DOES NOT EXIST", "DOES NOT EXIST");
   assertNull("Feature containers should not have arguments", featureContainer.getVMArguments());
 }
 /**
  * A directory of bundles should not have VM arguments.
  *
  * @throws Exception
  */
 public void testArgumentsPluginsDirectory() throws Exception {
   // test bundle containers for known arguments
   ITargetLocation directoryContainer =
       getTargetService().newDirectoryLocation(TargetPlatform.getDefaultLocation() + "/plugins");
   assertNull(
       "Plugins directory containers should not have arguments",
       directoryContainer.getVMArguments());
 }