test_class.file: cosmic-core/server/src/test/java/com/cloud/hypervisor/xenserver/resource/CitrixHelperTest.java
test_class.identifier: CitrixHelperTest
test_case.body: @Test
      public void testGetPVbootloaderArgs() throws Exception {
  
          final String os_name_Suse10Sp2_64 = "SUSE Linux Enterprise Server 10 SP2 (64-bit)";
          final String os_name_Suse10Sp2_32 = "SUSE Linux Enterprise Server 10 SP2 (32-bit)";
          final String os_name_Suse11Sp3_64 = "SUSE Linux Enterprise Server 11 SP3 (64-bit)";
          final String os_name_Suse11Sp3_32 = "SUSE Linux Enterprise Server 11 SP3 (32-bit)";
  
          final String os_name_Windows8_64 = "Windows 8 (64-bit)";
          final String os_name_Windows8_32 = "Windows 8 (32-bit)";
  
          final String pvBootLoaderArgs_32 = "--kernel /boot/vmlinuz-xenpae --ramdisk /boot/initrd-xenpae";
          final String pvBootLoaderArgs_64 = "--kernel /boot/vmlinuz-xen --ramdisk /boot/initrd-xen";
  
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Suse10Sp2_32), pvBootLoaderArgs_32);
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Suse10Sp2_64), pvBootLoaderArgs_64);
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Suse11Sp3_32), pvBootLoaderArgs_32);
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Suse11Sp3_64), pvBootLoaderArgs_64);
  
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Windows8_32), "");
          Assert.assertEquals(CitrixHelper.getPVbootloaderArgs(os_name_Windows8_64), "");
      }
test_case.class_method_signature: CitrixHelperTest.testGetPVbootloaderArgs()
test_case.full_signature: @Test public void testGetPVbootloaderArgs()
test_case.identifier: testGetPVbootloaderArgs
test_case.invocations: assertEquals getPVbootloaderArgs assertEquals getPVbootloaderArgs assertEquals getPVbootloaderArgs assertEquals getPVbootloaderArgs assertEquals getPVbootloaderArgs assertEquals getPVbootloaderArgs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPVbootloaderArgs()
focal_class.declarator: XenServerGuestOsMemoryMap = new HashMap<>(70)
focal_class.modifier: private static final
focal_class.original_string: private static final HashMap<String, MemoryValues> XenServerGuestOsMemoryMap = new HashMap<>(70);
focal_class.type: HashMap<String, MemoryValues>
focal_class.var_name: XenServerGuestOsMemoryMap
focal_class.file: cosmic-core/server/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixHelper.java
focal_class.identifier: CitrixHelper
focal_class.class_method_signature: CitrixHelper.getXenServerStaticMax(final String stdType, final boolean bootFromCD)
focal_class.full_signature: public static long getXenServerStaticMax(final String stdType, final boolean bootFromCD)
focal_class.identifier: getXenServerStaticMax
focal_class.modifiers: public static
focal_class.parameters: (final String stdType, final boolean bootFromCD)
focal_class.return: long
focal_class.signature: long getXenServerStaticMax(final String stdType, final boolean bootFromCD)
focal_class.class_method_signature: CitrixHelper.getXenServerStaticMin(final String stdType, final boolean bootFromCD)
focal_class.full_signature: public static long getXenServerStaticMin(final String stdType, final boolean bootFromCD)
focal_class.identifier: getXenServerStaticMin
focal_class.modifiers: public static
focal_class.parameters: (final String stdType, final boolean bootFromCD)
focal_class.return: long
focal_class.signature: long getXenServerStaticMin(final String stdType, final boolean bootFromCD)
focal_class.class_method_signature: CitrixHelper.getProductVersion(final Host.Record record)
focal_class.full_signature: public static String getProductVersion(final Host.Record record)
focal_class.identifier: getProductVersion
focal_class.modifiers: public static
focal_class.parameters: (final Host.Record record)
focal_class.return: String
focal_class.signature: String getProductVersion(final Host.Record record)
focal_class.class_method_signature: CitrixHelper.getPVbootloaderArgs(final String guestOS)
focal_class.full_signature: public static String getPVbootloaderArgs(final String guestOS)
focal_class.identifier: getPVbootloaderArgs
focal_class.modifiers: public static
focal_class.parameters: (final String guestOS)
focal_class.return: String
focal_class.signature: String getPVbootloaderArgs(final String guestOS)
focal_method.body: public static String getPVbootloaderArgs(final String guestOS) {
          if (guestOS.startsWith("SUSE Linux Enterprise Server")) {
              if (guestOS.contains("64-bit")) {
                  return "--kernel /boot/vmlinuz-xen --ramdisk /boot/initrd-xen";
              } else if (guestOS.contains("32-bit")) {
                  return "--kernel /boot/vmlinuz-xenpae --ramdisk /boot/initrd-xenpae";
              }
          }
          return "";
      }
focal_method.class_method_signature: CitrixHelper.getPVbootloaderArgs(final String guestOS)
focal_method.full_signature: public static String getPVbootloaderArgs(final String guestOS)
focal_method.identifier: getPVbootloaderArgs
focal_method.invocations: startsWith contains contains
focal_method.modifiers: public static
focal_method.parameters: (final String guestOS)
focal_method.return: String
focal_method.signature: String getPVbootloaderArgs(final String guestOS)