test_class.file: kendzi-straight-skeleton/src/test/java/kendzi/math/geometry/skeleton/path/FaceQueueUtilTest.java
test_class.identifier: FaceQueueUtilTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void test4() {
          FaceNode n1 = debugNewQueue("n1", true);
          FaceNode n2 = debugNewQueue("n2", true);
          // connecting two queues with different edges
          FaceQueueUtil.connectQueues(n1, n2);
  
          fail();
      }
test_case.class_method_signature: FaceQueueUtilTest.test4()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void test4()
test_case.identifier: test4
test_case.invocations: debugNewQueue debugNewQueue connectQueues fail
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test4()
focal_class.file: kendzi-straight-skeleton/src/main/java/kendzi/math/geometry/skeleton/path/FaceQueueUtil.java
focal_class.identifier: FaceQueueUtil
focal_class.class_method_signature: FaceQueueUtil.FaceQueueUtil()
focal_class.full_signature: private  FaceQueueUtil()
focal_class.identifier: FaceQueueUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FaceQueueUtil()
focal_class.class_method_signature: FaceQueueUtil.connectQueues(FaceNode firstFace, FaceNode secondFace)
focal_class.full_signature: public static void connectQueues(FaceNode firstFace, FaceNode secondFace)
focal_class.identifier: connectQueues
focal_class.modifiers: public static
focal_class.parameters: (FaceNode firstFace, FaceNode secondFace)
focal_class.return: void
focal_class.signature: void connectQueues(FaceNode firstFace, FaceNode secondFace)
focal_class.class_method_signature: FaceQueueUtil.moveNodes(FaceNode firstFace, FaceNode secondFace)
focal_class.full_signature: private static void moveNodes(FaceNode firstFace, FaceNode secondFace)
focal_class.identifier: moveNodes
focal_class.modifiers: private static
focal_class.parameters: (FaceNode firstFace, FaceNode secondFace)
focal_class.return: void
focal_class.signature: void moveNodes(FaceNode firstFace, FaceNode secondFace)
focal_method.body: public static void connectQueues(FaceNode firstFace, FaceNode secondFace) {
  
          ValidateUtil.validateNotNull(firstFace.list(), "firstFace.list");
          ValidateUtil.validateNotNull(secondFace.list(), "secondFace.list");
  
          if (firstFace.list() == secondFace.list()) {
              if (!firstFace.isEnd() || !secondFace.isEnd()) {
                  throw new IllegalStateException("try to connect the same list not on end nodes");
              }
              if (firstFace.isQueueUnconnected() || secondFace.isQueueUnconnected()) {
                  throw new IllegalStateException("can't close node queue not conected with edges");
              }
  
              firstFace.queueClose();
              return;
          }
          if (!firstFace.isQueueUnconnected() && !secondFace.isQueueUnconnected()) {
              throw new IllegalStateException("can't connect two diffrent queues if each of them is connected to edge");
          }
  
          if (!firstFace.isQueueUnconnected()) {
              FaceQueue qLeft = secondFace.getFaceQueue();
              moveNodes(firstFace, secondFace);
              qLeft.close();
  
          } else {
              FaceQueue qRight = firstFace.getFaceQueue();
              moveNodes(secondFace, firstFace);
              qRight.close();
          }
      }
focal_method.class_method_signature: FaceQueueUtil.connectQueues(FaceNode firstFace, FaceNode secondFace)
focal_method.full_signature: public static void connectQueues(FaceNode firstFace, FaceNode secondFace)
focal_method.identifier: connectQueues
focal_method.invocations: validateNotNull list validateNotNull list list list isEnd isEnd isQueueUnconnected isQueueUnconnected queueClose isQueueUnconnected isQueueUnconnected isQueueUnconnected getFaceQueue moveNodes close getFaceQueue moveNodes close
focal_method.modifiers: public static
focal_method.parameters: (FaceNode firstFace, FaceNode secondFace)
focal_method.return: void
focal_method.signature: void connectQueues(FaceNode firstFace, FaceNode secondFace)