test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/cache/TransformationCacheKeyTest.java
test_class.identifier: TransformationCacheKeyTest
test_case.body: @Test
      public void shouldGenerateSameKey() throws Exception {
          // given
          final TransformationCacheKey key1 = createTestDefaultKey();
          final TransformationCacheKey key2 = createTestDefaultKey(); // same params
  
          // then
          assertEquals(key1.getKey(), key2.getKey());
      }
test_case.class_method_signature: TransformationCacheKeyTest.shouldGenerateSameKey()
test_case.full_signature: @Test public void shouldGenerateSameKey()
test_case.identifier: shouldGenerateSameKey
test_case.invocations: createTestDefaultKey createTestDefaultKey assertEquals getKey getKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldGenerateSameKey()
focal_class.declarator: PREFIX = "transformation"
focal_class.modifier: private static final
focal_class.original_string: private static final String PREFIX = "transformation";
focal_class.type: String
focal_class.var_name: PREFIX
focal_class.declarator: parameters
focal_class.modifier: private final
focal_class.original_string: private final String parameters;
focal_class.type: String
focal_class.var_name: parameters
focal_class.declarator: sourceType
focal_class.modifier: private final
focal_class.original_string: private final ExportParameters.SourceType sourceType;
focal_class.type: ExportParameters.SourceType
focal_class.var_name: sourceType
focal_class.declarator: userId
focal_class.modifier: private final
focal_class.original_string: private final String userId;
focal_class.type: String
focal_class.var_name: userId
focal_class.declarator: datasetId
focal_class.modifier: private
focal_class.original_string: private String datasetId;
focal_class.type: String
focal_class.var_name: datasetId
focal_class.declarator: preparationId
focal_class.modifier: private
focal_class.original_string: private String preparationId;
focal_class.type: String
focal_class.var_name: preparationId
focal_class.declarator: stepId
focal_class.modifier: private
focal_class.original_string: private String stepId;
focal_class.type: String
focal_class.var_name: stepId
focal_class.declarator: format
focal_class.modifier: private
focal_class.original_string: private String format;
focal_class.type: String
focal_class.var_name: format
focal_class.declarator: filter
focal_class.modifier: private
focal_class.original_string: private String filter;
focal_class.type: String
focal_class.var_name: filter
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/cache/TransformationCacheKey.java
focal_class.identifier: TransformationCacheKey
focal_class.interfaces: implements ContentCacheKey
focal_class.class_method_signature: TransformationCacheKey.TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
              final String parameters, final ExportParameters.SourceType sourceType, final String userId,
              final String filter)
focal_class.full_signature:   TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
              final String parameters, final ExportParameters.SourceType sourceType, final String userId,
              final String filter)
focal_class.identifier: TransformationCacheKey
focal_class.parameters: (final String preparationId, final String datasetId, final String format, final String stepId,
              final String parameters, final ExportParameters.SourceType sourceType, final String userId,
              final String filter)
focal_class.signature:  TransformationCacheKey(final String preparationId, final String datasetId, final String format, final String stepId,
              final String parameters, final ExportParameters.SourceType sourceType, final String userId,
              final String filter)
focal_class.class_method_signature: TransformationCacheKey.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: TransformationCacheKey.getKey()
focal_class.full_signature: @Override public String getKey()
focal_class.identifier: getKey
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getKey()
focal_class.class_method_signature: TransformationCacheKey.getPrefix()
focal_class.full_signature: @Override public String getPrefix()
focal_class.identifier: getPrefix
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrefix()
focal_class.class_method_signature: TransformationCacheKey.getMatcher()
focal_class.full_signature: @Override public Predicate<String> getMatcher()
focal_class.identifier: getMatcher
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Predicate<String>
focal_class.signature: Predicate<String> getMatcher()
focal_method.body: @Override
      public String getKey() {
          return PREFIX + '_' + preparationId + "_" + datasetId + "_"
                  + DigestUtils.sha1Hex(stepId + format + Objects.hash(parameters) + sourceType + userId + filter);
      }
focal_method.class_method_signature: TransformationCacheKey.getKey()
focal_method.full_signature: @Override public String getKey()
focal_method.identifier: getKey
focal_method.invocations: sha1Hex hash
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getKey()