test_class.declarator: enabledExpectedFile = new File("src/test/resources/services/enabled_expected.xml")
test_class.modifier: private final
test_class.original_string: private final File enabledExpectedFile = new File("src/test/resources/services/enabled_expected.xml");
test_class.type: File
test_class.var_name: enabledExpectedFile
test_class.declarator: disabledExpectedFile = new File("src/test/resources/services/disabled_expected.xml")
test_class.modifier: private final
test_class.original_string: private final File disabledExpectedFile = new File("src/test/resources/services/disabled_expected.xml");
test_class.type: File
test_class.var_name: disabledExpectedFile
test_class.declarator: enabledActualFile
test_class.modifier: private
test_class.original_string: private File enabledActualFile;
test_class.type: File
test_class.var_name: enabledActualFile
test_class.declarator: disabledActualFile
test_class.modifier: private
test_class.original_string: private File disabledActualFile;
test_class.type: File
test_class.var_name: disabledActualFile
test_class.declarator: serviceURI = SailfishURI.unsafeParse("test:enabled_service")
test_class.modifier: private final
test_class.original_string: private final SailfishURI serviceURI = SailfishURI.unsafeParse("test:enabled_service");
test_class.type: SailfishURI
test_class.var_name: serviceURI
test_class.declarator: dictionaryURI = SailfishURI.unsafeParse("test_dictionary")
test_class.modifier: private final
test_class.original_string: private final SailfishURI dictionaryURI = SailfishURI.unsafeParse("test_dictionary");
test_class.type: SailfishURI
test_class.var_name: dictionaryURI
test_class.declarator: dictionarySettings = new DictionarySettings()
test_class.modifier: private final
test_class.original_string: private final DictionarySettings dictionarySettings = new DictionarySettings();
test_class.type: DictionarySettings
test_class.var_name: dictionarySettings
test_class.declarator: dictionaryManager = Mockito.mock(IDictionaryManager.class)
test_class.modifier: private final
test_class.original_string: private final IDictionaryManager dictionaryManager = Mockito.mock(IDictionaryManager.class);
test_class.type: IDictionaryManager
test_class.var_name: dictionaryManager
test_class.declarator: serviceManager = new ServiceManagerWithEnabled()
test_class.modifier: private final
test_class.original_string: private final IStaticServiceManager serviceManager = new ServiceManagerWithEnabled();
test_class.type: IStaticServiceManager
test_class.var_name: serviceManager
test_class.declarator: disabledServiceManager = Mockito.mock(IStaticServiceManager.class)
test_class.modifier: private final
test_class.original_string: private final IStaticServiceManager disabledServiceManager = Mockito.mock(IStaticServiceManager.class);
test_class.type: IStaticServiceManager
test_class.var_name: disabledServiceManager
test_class.declarator: enabledMarshalManager =
              new ServiceMarshalManager(serviceManager, dictionaryManager)
test_class.modifier: private final
test_class.original_string: private final ServiceMarshalManager enabledMarshalManager =
              new ServiceMarshalManager(serviceManager, dictionaryManager);
test_class.type: ServiceMarshalManager
test_class.var_name: enabledMarshalManager
test_class.declarator: disabledMarshalManager =
              new ServiceMarshalManager(disabledServiceManager, dictionaryManager)
test_class.modifier: private final
test_class.original_string: private final ServiceMarshalManager disabledMarshalManager =
              new ServiceMarshalManager(disabledServiceManager, dictionaryManager);
test_class.type: ServiceMarshalManager
test_class.var_name: disabledMarshalManager
test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/services/TestDisabledServiceSettings.java
test_class.identifier: TestDisabledServiceSettings
test_case.body: @Test
      public void testDisabledToDisabled() throws Exception {
          ServiceDescription disabledDescription = createDisabledDescription();
  
          // export disabled and check with expected
          Map<String, File> stringFileMap = disabledMarshalManager.exportServices(Arrays.asList(disabledDescription));
          Assert.assertEquals(1, stringFileMap.size());
  
          Entry<String, File> next = stringFileMap.entrySet().iterator().next();
          File exported = next.getValue();
  
          compareLinesInTwoFiles(disabledExpectedFile, exported);
          exported.deleteOnExit();
  
          // export disabled and check with expected
          Unmarshaller unmarshaller = disabledMarshalManager.createUnmarshaller(ServiceDescription.class, DisabledServiceSettings.class);
          disabledDescription = (ServiceDescription)unmarshall(unmarshaller, exported);
          ServiceDescription unmarshalledDescription = (ServiceDescription)unmarshall(unmarshaller, disabledExpectedFile);
          compareDescriptionHeads(disabledDescription, unmarshalledDescription);
  
          DisabledServiceSettings expectedSettings = (DisabledServiceSettings)disabledDescription.getSettings();
          DisabledServiceSettings actualSettings = (DisabledServiceSettings)unmarshalledDescription.getSettings();
  
          Assert.assertEquals(expectedSettings.getSettings(), actualSettings.getSettings());
  
          // import disabled by ServiceMarshalManager - must throw ClassNotFoundException
          try (FileInputStream inputStream = new FileInputStream(exported)) {
              List<ServiceDescription> results = new ArrayList<>();
              List<String> errors = new ArrayList<>();
  
              disabledMarshalManager.unmarshalServices(inputStream, false, results, errors);
  
              Assert.assertEquals(0, results.size());
              Assert.assertEquals(1, errors.size());
  
              String expectedError = "Could not import service. Reason: Cannot find settings class for service URI:" +
                      " test:enabled_service";
              Assert.assertEquals(expectedError, errors.get(0));
          }
      }
test_case.class_method_signature: TestDisabledServiceSettings.testDisabledToDisabled()
test_case.full_signature: @Test public void testDisabledToDisabled()
test_case.identifier: testDisabledToDisabled
test_case.invocations: createDisabledDescription exportServices asList assertEquals size next iterator entrySet getValue compareLinesInTwoFiles deleteOnExit createUnmarshaller unmarshall unmarshall compareDescriptionHeads getSettings getSettings assertEquals getSettings getSettings unmarshalServices assertEquals size assertEquals size assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDisabledToDisabled()
focal_class.declarator: serialVersionUID = 7271664531171177700L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 7271664531171177700L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: entries = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<Element> entries = new ArrayList<>();
focal_class.type: List<Element>
focal_class.var_name: entries
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/services/DisabledServiceSettings.java
focal_class.identifier: DisabledServiceSettings
focal_class.interfaces: implements IServiceSettings, Serializable
focal_class.class_method_signature: DisabledServiceSettings.DisabledServiceSettings()
focal_class.full_signature: public  DisabledServiceSettings()
focal_class.identifier: DisabledServiceSettings
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DisabledServiceSettings()
focal_class.class_method_signature: DisabledServiceSettings.DisabledServiceSettings(Map<String, String> settings)
focal_class.full_signature: public  DisabledServiceSettings(Map<String, String> settings)
focal_class.identifier: DisabledServiceSettings
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> settings)
focal_class.signature:  DisabledServiceSettings(Map<String, String> settings)
focal_class.class_method_signature: DisabledServiceSettings.getComment()
focal_class.full_signature: @Override public String getComment()
focal_class.identifier: getComment
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getComment()
focal_class.class_method_signature: DisabledServiceSettings.getDictionaryName()
focal_class.full_signature: @Override public SailfishURI getDictionaryName()
focal_class.identifier: getDictionaryName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SailfishURI
focal_class.signature: SailfishURI getDictionaryName()
focal_class.class_method_signature: DisabledServiceSettings.setDictionaryName(SailfishURI dictionaryName)
focal_class.full_signature: @Override public void setDictionaryName(SailfishURI dictionaryName)
focal_class.identifier: setDictionaryName
focal_class.modifiers: @Override public
focal_class.parameters: (SailfishURI dictionaryName)
focal_class.return: void
focal_class.signature: void setDictionaryName(SailfishURI dictionaryName)
focal_class.class_method_signature: DisabledServiceSettings.getExpectedTimeOfStarting()
focal_class.full_signature: @Override public long getExpectedTimeOfStarting()
focal_class.identifier: getExpectedTimeOfStarting
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getExpectedTimeOfStarting()
focal_class.class_method_signature: DisabledServiceSettings.getWaitingTimeBeforeStarting()
focal_class.full_signature: @Override public long getWaitingTimeBeforeStarting()
focal_class.identifier: getWaitingTimeBeforeStarting
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getWaitingTimeBeforeStarting()
focal_class.class_method_signature: DisabledServiceSettings.isPerformDump()
focal_class.full_signature: @Override public boolean isPerformDump()
focal_class.identifier: isPerformDump
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPerformDump()
focal_class.class_method_signature: DisabledServiceSettings.getStoredMessageTypes()
focal_class.full_signature: @Override public String getStoredMessageTypes()
focal_class.identifier: getStoredMessageTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getStoredMessageTypes()
focal_class.class_method_signature: DisabledServiceSettings.isPersistMessages()
focal_class.full_signature: @Override public boolean isPersistMessages()
focal_class.identifier: isPersistMessages
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isPersistMessages()
focal_class.class_method_signature: DisabledServiceSettings.isAutoStartable()
focal_class.full_signature: @Override public boolean isAutoStartable()
focal_class.identifier: isAutoStartable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAutoStartable()
focal_class.class_method_signature: DisabledServiceSettings.isInvertStoredMessageTypes()
focal_class.full_signature: @Override public boolean isInvertStoredMessageTypes()
focal_class.identifier: isInvertStoredMessageTypes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isInvertStoredMessageTypes()
focal_class.class_method_signature: DisabledServiceSettings.getSendMessageTimeout()
focal_class.full_signature: @Override public long getSendMessageTimeout()
focal_class.identifier: getSendMessageTimeout
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getSendMessageTimeout()
focal_class.class_method_signature: DisabledServiceSettings.load(HierarchicalConfiguration config)
focal_class.full_signature: @Override public void load(HierarchicalConfiguration config)
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: (HierarchicalConfiguration config)
focal_class.return: void
focal_class.signature: void load(HierarchicalConfiguration config)
focal_class.class_method_signature: DisabledServiceSettings.getSettings()
focal_class.full_signature: @XmlTransient public Map<String, String> getSettings()
focal_class.identifier: getSettings
focal_class.modifiers: @XmlTransient public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getSettings()
focal_class.class_method_signature: DisabledServiceSettings.setSettings(Map<String, String> settings)
focal_class.full_signature: public void setSettings(Map<String, String> settings)
focal_class.identifier: setSettings
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> settings)
focal_class.return: void
focal_class.signature: void setSettings(Map<String, String> settings)
focal_class.class_method_signature: DisabledServiceSettings.getEntries()
focal_class.full_signature: @XmlAnyElement public List<Element> getEntries()
focal_class.identifier: getEntries
focal_class.modifiers: @XmlAnyElement public
focal_class.parameters: ()
focal_class.return: List<Element>
focal_class.signature: List<Element> getEntries()
focal_class.class_method_signature: DisabledServiceSettings.convertMapToElementList(Map<String, String> settings)
focal_class.full_signature: private void convertMapToElementList(Map<String, String> settings)
focal_class.identifier: convertMapToElementList
focal_class.modifiers: private
focal_class.parameters: (Map<String, String> settings)
focal_class.return: void
focal_class.signature: void convertMapToElementList(Map<String, String> settings)
focal_class.class_method_signature: DisabledServiceSettings.convertJAXBElementListToMap()
focal_class.full_signature: private Map<String, String> convertJAXBElementListToMap()
focal_class.identifier: convertJAXBElementListToMap
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> convertJAXBElementListToMap()
focal_method.body: @XmlTransient
      public Map<String, String> getSettings() {
          return convertJAXBElementListToMap();
      }
focal_method.class_method_signature: DisabledServiceSettings.getSettings()
focal_method.full_signature: @XmlTransient public Map<String, String> getSettings()
focal_method.identifier: getSettings
focal_method.invocations: convertJAXBElementListToMap
focal_method.modifiers: @XmlTransient public
focal_method.parameters: ()
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> getSettings()