test_class.file: everrest-core/src/test/java/org/everrest/core/impl/header/AcceptMediaTypeHeaderDelegateTest.java
test_class.identifier: AcceptMediaTypeHeaderDelegateTest
test_case.body: @UseDataProvider("forTestAcceptMediaTypeToString")
      @Test
      public void testAcceptMediaTypeToString(AcceptMediaType acceptMediaType, String expectedResult) {
          AcceptMediaTypeHeaderDelegate headerDelegate = new AcceptMediaTypeHeaderDelegate();
          assertEquals(expectedResult, headerDelegate.toString(acceptMediaType));
      }
test_case.class_method_signature: AcceptMediaTypeHeaderDelegateTest.testAcceptMediaTypeToString(AcceptMediaType acceptMediaType, String expectedResult)
test_case.full_signature: @UseDataProvider("forTestAcceptMediaTypeToString") @Test public void testAcceptMediaTypeToString(AcceptMediaType acceptMediaType, String expectedResult)
test_case.identifier: testAcceptMediaTypeToString
test_case.invocations: assertEquals toString
test_case.modifiers: @UseDataProvider("forTestAcceptMediaTypeToString") @Test public
test_case.parameters: (AcceptMediaType acceptMediaType, String expectedResult)
test_case.return: void
test_case.signature: void testAcceptMediaTypeToString(AcceptMediaType acceptMediaType, String expectedResult)
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/header/AcceptMediaTypeHeaderDelegate.java
focal_class.identifier: AcceptMediaTypeHeaderDelegate
focal_class.interfaces: implements RuntimeDelegate.HeaderDelegate<AcceptMediaType>
focal_class.class_method_signature: AcceptMediaTypeHeaderDelegate.fromString(String header)
focal_class.full_signature: @Override public AcceptMediaType fromString(String header)
focal_class.identifier: fromString
focal_class.modifiers: @Override public
focal_class.parameters: (String header)
focal_class.return: AcceptMediaType
focal_class.signature: AcceptMediaType fromString(String header)
focal_class.class_method_signature: AcceptMediaTypeHeaderDelegate.toString(AcceptMediaType acceptMediaType)
focal_class.full_signature: @Override public String toString(AcceptMediaType acceptMediaType)
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: (AcceptMediaType acceptMediaType)
focal_class.return: String
focal_class.signature: String toString(AcceptMediaType acceptMediaType)
focal_method.body: @Override
      public String toString(AcceptMediaType acceptMediaType) {
          if (acceptMediaType == null) {
              throw new IllegalArgumentException();
          }
          final Map<String, String> parameters = acceptMediaType.getParameters();
          if (parameters.isEmpty() || (parameters.size() == 1 && parameters.containsKey(QVALUE))) {
              return acceptMediaType.getMediaType().toString();
          }
          final Map<String, String> copyParameters = new LinkedHashMap<>(parameters);
          copyParameters.remove(QVALUE);
          return new MediaType(acceptMediaType.getType(), acceptMediaType.getSubtype(), copyParameters).toString();
      }
focal_method.class_method_signature: AcceptMediaTypeHeaderDelegate.toString(AcceptMediaType acceptMediaType)
focal_method.full_signature: @Override public String toString(AcceptMediaType acceptMediaType)
focal_method.identifier: toString
focal_method.invocations: getParameters isEmpty size containsKey toString getMediaType remove toString getType getSubtype
focal_method.modifiers: @Override public
focal_method.parameters: (AcceptMediaType acceptMediaType)
focal_method.return: String
focal_method.signature: String toString(AcceptMediaType acceptMediaType)