test_class.file: shared/src/test/java/org/eclipse/steady/shared/json/JacksonUtilTest.java
test_class.identifier: JacksonUtilTest
test_case.body: @Test
    public void testAppAsJsonStringWithView() {
      final Application app = new Application("com.acme", "foo", "0.1");
  
      final Library lib = new Library("digest-123");
      lib.setDigestAlgorithm(DigestAlgorithm.SHA256);
  
      final Set<Property> props = new HashSet<Property>();
      props.add(new Property(PropertySource.JAVA_MANIFEST, "foo-prop", "bar-prop"));
      lib.setProperties(props);
  
      final Set<ConstructId> cons = new HashSet<ConstructId>();
      cons.add(new ConstructId(ProgrammingLanguage.JAVA, ConstructType.METH, "com.foo.Bar"));
      lib.setConstructs(cons);
  
      app.addDependency(new Dependency(app, lib, Scope.COMPILE, false, "fo0-lib.jar", "/tmp/"));
  
      // All properties (as no view is given)
      final String json_no_view = JacksonUtil.asJsonString(app, null, null);
      // assertEquals("{\"artifact\":\"foo\",\"version\":\"0.1\",\"createdAt\":null,\"modifiedAt\":null,\"lastScan\":null,\"lastVulnChange\":null,\"constructs\":[],\"dependencies\":[{\"lib\":{\"digest\":\"digest-123\",\"digestAlgorithm\":\"SHA256\",\"createdAt\":null,\"properties\":[{\"source\":\"JAVA_MANIFEST\",\"name\":\"foo-prop\",\"value\":\"bar-prop\"}],\"constructs\":[{\"lang\":\"JAVA\",\"type\":\"METH\",\"qname\":\"com.foo.Bar\",\"relates\":null,\"attributes\":null}],\"libraryId\":null,\"wellknownDigest\":null,\"digestVerificationUrl\":null,\"constructCounter\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":1,\"MODU\":0,\"FUNC\":0}},\"declared\":true,\"traced\":false,\"scope\":\"COMPILE\",\"transitive\":false,\"filename\":\"fo0-lib.jar\",\"path\":\"/tmp/\",\"reachableConstructIds\":null,\"touchPoints\":null,\"parent\":null,\"origin\":null,\"relativePath\":null}],\"empty\":false,\"complete\":true,\"group\":\"com.acme\",\"constructCounter\":0,\"countDependencies\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":0,\"MODU\":0,\"FUNC\":0}}", json_no_view);
  
      // All properties without view and those with view Default
      final String json_default_view = JacksonUtil.asJsonString(app, null, Views.Default.class);
      // assertEquals("{\"artifact\":\"foo\",\"version\":\"0.1\",\"createdAt\":null,\"modifiedAt\":null,\"lastScan\":null,\"lastVulnChange\":null,\"constructs\":[],\"dependencies\":[{\"lib\":{\"digest\":\"digest-123\",\"digestAlgorithm\":\"SHA256\",\"createdAt\":null,\"libraryId\":null,\"wellknownDigest\":null,\"digestVerificationUrl\":null,\"constructCounter\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":1,\"MODU\":0,\"FUNC\":0}},\"declared\":true,\"traced\":false,\"scope\":\"COMPILE\",\"transitive\":false,\"filename\":\"fo0-lib.jar\",\"path\":\"/tmp/\",\"reachableConstructIds\":null,\"touchPoints\":null,\"parent\":null,\"origin\":null,\"relativePath\":null}],\"empty\":false,\"complete\":true,\"group\":\"com.acme\",\"constructCounter\":0,\"countDependencies\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":0,\"MODU\":0,\"FUNC\":0}}", json_default_view);
  
      // All properties without view and those with view LibDetails
      final String json_lib_view = JacksonUtil.asJsonString(app, null, Views.LibDetails.class);
      // assertEquals("{\"artifact\":\"foo\",\"version\":\"0.1\",\"createdAt\":null,\"modifiedAt\":null,\"lastScan\":null,\"lastVulnChange\":null,\"constructs\":[],\"dependencies\":[{\"lib\":{\"digest\":\"digest-123\",\"digestAlgorithm\":\"SHA256\",\"createdAt\":null,\"properties\":[{\"source\":\"JAVA_MANIFEST\",\"name\":\"foo-prop\",\"value\":\"bar-prop\"}],\"constructs\":[{\"lang\":\"JAVA\",\"type\":\"METH\",\"qname\":\"com.foo.Bar\",\"relates\":null,\"attributes\":null}],\"libraryId\":null,\"wellknownDigest\":null,\"digestVerificationUrl\":null,\"constructCounter\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":1,\"MODU\":0,\"FUNC\":0}},\"declared\":true,\"traced\":false,\"scope\":\"COMPILE\",\"transitive\":false,\"filename\":\"fo0-lib.jar\",\"path\":\"/tmp/\",\"reachableConstructIds\":null,\"touchPoints\":null,\"parent\":null,\"origin\":null,\"relativePath\":null}],\"empty\":false,\"complete\":true,\"group\":\"com.acme\",\"constructCounter\":0,\"countDependencies\":1,\"constructTypeCounters\":{\"PACK\":0,\"ENUM\":0,\"CONS\":0,\"CLASS\":0,\"INIT\":0,\"METH\":0,\"MODU\":0,\"FUNC\":0}}", json_lib_view);
    }
test_case.class_method_signature: JacksonUtilTest.testAppAsJsonStringWithView()
test_case.full_signature: @Test public void testAppAsJsonStringWithView()
test_case.identifier: testAppAsJsonStringWithView
test_case.invocations: setDigestAlgorithm add setProperties add setConstructs addDependency asJsonString asJsonString asJsonString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAppAsJsonStringWithView()
focal_class.file: shared/src/main/java/org/eclipse/steady/shared/json/JacksonUtil.java
focal_class.identifier: JacksonUtil
focal_class.class_method_signature: JacksonUtil.asJsonString(final Object _object)
focal_class.full_signature: public static String asJsonString(final Object _object)
focal_class.identifier: asJsonString
focal_class.modifiers: public static
focal_class.parameters: (final Object _object)
focal_class.return: String
focal_class.signature: String asJsonString(final Object _object)
focal_class.class_method_signature: JacksonUtil.asJsonString(
        final Object _object, final Map<Class<?>, StdSerializer<?>> _custom_serializers)
focal_class.full_signature: public static String asJsonString(
        final Object _object, final Map<Class<?>, StdSerializer<?>> _custom_serializers)
focal_class.identifier: asJsonString
focal_class.modifiers: public static
focal_class.parameters: (
        final Object _object, final Map<Class<?>, StdSerializer<?>> _custom_serializers)
focal_class.return: String
focal_class.signature: String asJsonString(
        final Object _object, final Map<Class<?>, StdSerializer<?>> _custom_serializers)
focal_class.class_method_signature: JacksonUtil.asJsonString(
        final Object _object,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) @SuppressFBWarnings( value = "WMI_WRONG_MAP_ITERATOR", justification = "Use of entrySet causes troubles with generics") public static String asJsonString(
        final Object _object,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view)
focal_class.identifier: asJsonString
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) @SuppressFBWarnings( value = "WMI_WRONG_MAP_ITERATOR", justification = "Use of entrySet causes troubles with generics") public static
focal_class.parameters: (
        final Object _object,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view)
focal_class.return: String
focal_class.signature: String asJsonString(
        final Object _object,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view)
focal_class.class_method_signature: JacksonUtil.asObject(final String _json, final Class<?> _clazz)
focal_class.full_signature: public static Object asObject(final String _json, final Class<?> _clazz)
focal_class.identifier: asObject
focal_class.modifiers: public static
focal_class.parameters: (final String _json, final Class<?> _clazz)
focal_class.return: Object
focal_class.signature: Object asObject(final String _json, final Class<?> _clazz)
focal_class.class_method_signature: JacksonUtil.asObject(
        final String _json,
        final Map<Class<?>, StdDeserializer<?>> _custom_deserializers,
        final Class<?> _clazz)
focal_class.full_signature: @SuppressWarnings({"unchecked", "rawtypes"}) @SuppressFBWarnings( value = "WMI_WRONG_MAP_ITERATOR", justification = "Use of entrySet causes troubles with generics") public static Object asObject(
        final String _json,
        final Map<Class<?>, StdDeserializer<?>> _custom_deserializers,
        final Class<?> _clazz)
focal_class.identifier: asObject
focal_class.modifiers: @SuppressWarnings({"unchecked", "rawtypes"}) @SuppressFBWarnings( value = "WMI_WRONG_MAP_ITERATOR", justification = "Use of entrySet causes troubles with generics") public static
focal_class.parameters: (
        final String _json,
        final Map<Class<?>, StdDeserializer<?>> _custom_deserializers,
        final Class<?> _clazz)
focal_class.return: Object
focal_class.signature: Object asObject(
        final String _json,
        final Map<Class<?>, StdDeserializer<?>> _custom_deserializers,
        final Class<?> _clazz)
focal_class.class_method_signature: JacksonUtil.fromTo(
        final Object _from,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view,
        final Class<?> _to)
focal_class.full_signature: public static Object fromTo(
        final Object _from,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view,
        final Class<?> _to)
focal_class.identifier: fromTo
focal_class.modifiers: public static
focal_class.parameters: (
        final Object _from,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view,
        final Class<?> _to)
focal_class.return: Object
focal_class.signature: Object fromTo(
        final Object _from,
        final Map<Class<?>, StdSerializer<?>> _custom_serializers,
        final Class _view,
        final Class<?> _to)
focal_method.body: public static String asJsonString(final Object _object) {
      return JacksonUtil.asJsonString(_object, null, null);
    }
focal_method.class_method_signature: JacksonUtil.asJsonString(final Object _object)
focal_method.full_signature: public static String asJsonString(final Object _object)
focal_method.identifier: asJsonString
focal_method.invocations: asJsonString
focal_method.modifiers: public static
focal_method.parameters: (final Object _object)
focal_method.return: String
focal_method.signature: String asJsonString(final Object _object)