test_class.file: session-replacement/src/test/java/com/amadeus/session/TestUuidProvider.java
test_class.identifier: TestUuidProvider
test_case.body: @Test
    public void testReadId() {
      UuidProvider provider = new UuidProvider();
      assertNull(provider.readId("ABCDEFG"));
      assertNull(provider.readId(""));
      assertNull(provider.readId(null));
      UUID uuid = UUID.randomUUID();
      assertEquals(uuid.toString(), provider.readId(uuid.toString()));
    }
test_case.class_method_signature: TestUuidProvider.testReadId()
test_case.full_signature: @Test public void testReadId()
test_case.identifier: testReadId
test_case.invocations: assertNull readId assertNull readId assertNull readId randomUUID assertEquals toString readId toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadId()
focal_class.declarator: logger = LoggerFactory.getLogger(UuidProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(UuidProvider.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: session-replacement/src/main/java/com/amadeus/session/UuidProvider.java
focal_class.identifier: UuidProvider
focal_class.interfaces: implements SessionIdProvider
focal_class.class_method_signature: UuidProvider.newId()
focal_class.full_signature: @Override public String newId()
focal_class.identifier: newId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String newId()
focal_class.class_method_signature: UuidProvider.readId(String value)
focal_class.full_signature: @Override public String readId(String value)
focal_class.identifier: readId
focal_class.modifiers: @Override public
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String readId(String value)
focal_class.class_method_signature: UuidProvider.configure(SessionConfiguration configuration)
focal_class.full_signature: @Override public void configure(SessionConfiguration configuration)
focal_class.identifier: configure
focal_class.modifiers: @Override public
focal_class.parameters: (SessionConfiguration configuration)
focal_class.return: void
focal_class.signature: void configure(SessionConfiguration configuration)
focal_method.body: @Override
    public String readId(String value) {
      try {
        return UUID.fromString(value).toString();
      } catch (Exception e) { // NOSONAR If exception it is not valid UUID
        logger.info("Cookie value vas not a valid UUID: {}", value);
        return null;
      }
    }
focal_method.class_method_signature: UuidProvider.readId(String value)
focal_method.full_signature: @Override public String readId(String value)
focal_method.identifier: readId
focal_method.invocations: toString fromString info
focal_method.modifiers: @Override public
focal_method.parameters: (String value)
focal_method.return: String
focal_method.signature: String readId(String value)