test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ClusterViewTest.java
test_class.identifier: ClusterViewTest
test_case.body: @Test
      public void testConstructor() throws Exception {
          final Integer viewId = 3;
          final String clusterViewId = UUID.randomUUID().toString();
          final Integer instanceId = 2;
          final Set<Integer> emptyInstanceIds = new HashSet<Integer>();
          final Set<Integer> instanceIds = new HashSet<Integer>();
          instanceIds.add(1);
          final Set<Integer> deactivating = new HashSet<Integer>();
          final Set<Integer> inactive = new HashSet<Integer>();
          try {
              new ClusterView(-1, true, clusterViewId, instanceId, instanceIds, deactivating, inactive);
              fail("should complain");
          } catch (IllegalStateException e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, null, instanceId, instanceIds, deactivating, inactive);
              fail("should complain");
          } catch (IllegalStateException e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, clusterViewId, -1, instanceIds, deactivating, inactive);
              fail("should complain");
          } catch (IllegalStateException e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, clusterViewId, instanceId, emptyInstanceIds, deactivating, inactive);
              fail("should complain");
          } catch (IllegalStateException e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, clusterViewId, instanceId, null, deactivating, inactive);
              fail("should complain");
          } catch (IllegalStateException e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, clusterViewId, instanceId, instanceIds, null, inactive);
              fail("should complain");
          } catch (Exception e) {
              // ok
          }
          try {
              new ClusterView(viewId, true, clusterViewId, instanceId, instanceIds, deactivating, null);
              fail("should complain");
          } catch (Exception e) {
              // ok
          }
          final Set<Integer> nonEmptyDeactivating = new HashSet<Integer>();
          nonEmptyDeactivating.add(3);
          new ClusterView(viewId, false, clusterViewId, instanceId, instanceIds, nonEmptyDeactivating, inactive);
          new ClusterView(viewId, true, clusterViewId, instanceId, instanceIds, nonEmptyDeactivating, inactive);
          // should not complain about:
          new ClusterView(viewId, true, clusterViewId, instanceId, instanceIds, deactivating, inactive);
      }
test_case.class_method_signature: ClusterViewTest.testConstructor()
test_case.full_signature: @Test public void testConstructor()
test_case.identifier: testConstructor
test_case.invocations: toString randomUUID add fail fail fail fail fail fail fail add
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConstructor()
focal_class.declarator: json
focal_class.modifier: private final
focal_class.original_string: private final String json;
focal_class.type: String
focal_class.var_name: json
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/ClusterView.java
focal_class.identifier: ClusterView
focal_class.class_method_signature: ClusterView.fromDocument(int localInstanceId, String clusterId, ClusterViewDocument clusterViewDoc, Set<Integer> backlogIds)
focal_class.full_signature: static ClusterView fromDocument(int localInstanceId, String clusterId, ClusterViewDocument clusterViewDoc, Set<Integer> backlogIds)
focal_class.identifier: fromDocument
focal_class.modifiers: static
focal_class.parameters: (int localInstanceId, String clusterId, ClusterViewDocument clusterViewDoc, Set<Integer> backlogIds)
focal_class.return: ClusterView
focal_class.signature: ClusterView fromDocument(int localInstanceId, String clusterId, ClusterViewDocument clusterViewDoc, Set<Integer> backlogIds)
focal_class.class_method_signature: ClusterView.ClusterView(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.full_signature:   ClusterView(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.identifier: ClusterView
focal_class.parameters: (final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.signature:  ClusterView(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.class_method_signature: ClusterView.asJson(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.full_signature: private String asJson(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.identifier: asJson
focal_class.modifiers: private
focal_class.parameters: (final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.return: String
focal_class.signature: String asJson(final long viewSeqNum, final boolean viewFinal, final String clusterId, final int localId,
              final Set<Integer> activeIds, final Set<Integer> deactivatingIds, final Set<Integer> inactiveIds)
focal_class.class_method_signature: ClusterView.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: ClusterView.asDescriptorValue()
focal_class.full_signature:  String asDescriptorValue()
focal_class.identifier: asDescriptorValue
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String asDescriptorValue()
focal_method.body: @Override
      public String toString() {
          return "a ClusterView[" + json + "]";
      }
focal_method.class_method_signature: ClusterView.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()