test_class.declarator: metafile
test_class.modifier: private
test_class.original_string: private Metafile metafile;
test_class.type: Metafile
test_class.var_name: metafile
test_class.declarator: blockManipulationService
test_class.modifier: private
test_class.original_string: private IBlockManipulationService blockManipulationService;
test_class.type: IBlockManipulationService
test_class.var_name: blockManipulationService
test_class.file: block_manipulation_service/src/test/java/com/stnetix/ariaddna/blockmanipulation/service/BlockManipulationServiceImplTest.java
test_class.identifier: BlockManipulationServiceImplTest
test_case.body: @Test(expected = MetafileIsFolderException.class)
      public void getNextBlockUuidByFolder()
              throws BlockDoesNotExistException, MetafileIsFolderException {
          Map<String, String> properties = new HashMap<>();
          properties.put("typeOnFs", FileType.DIR.toString());
          metafile.setProperties(properties);
          //here it throws exception
          blockManipulationService.getNextBlockUuid(metafile);
      }
test_case.class_method_signature: BlockManipulationServiceImplTest.getNextBlockUuidByFolder()
test_case.full_signature: @Test(expected = MetafileIsFolderException.class) public void getNextBlockUuidByFolder()
test_case.identifier: getNextBlockUuidByFolder
test_case.invocations: put toString setProperties getNextBlockUuid
test_case.modifiers: @Test(expected = MetafileIsFolderException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNextBlockUuidByFolder()
focal_class.declarator: blockUuidList
focal_class.modifier: private
focal_class.original_string: private List<String> blockUuidList;
focal_class.type: List<String>
focal_class.var_name: blockUuidList
focal_class.file: block_manipulation_service/src/main/java/com/stnetix/ariaddna/blockmanipulation/service/BlockManipulationServiceImpl.java
focal_class.identifier: BlockManipulationServiceImpl
focal_class.interfaces: implements IBlockManipulationService
focal_class.class_method_signature: BlockManipulationServiceImpl.getNextBlockUuid(Metafile metafile)
focal_class.full_signature: @Override public String getNextBlockUuid(Metafile metafile)
focal_class.identifier: getNextBlockUuid
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile)
focal_class.return: String
focal_class.signature: String getNextBlockUuid(Metafile metafile)
focal_class.class_method_signature: BlockManipulationServiceImpl.getBlockUuidByNumber(Metafile metafile, int blockNumber)
focal_class.full_signature: @Override public String getBlockUuidByNumber(Metafile metafile, int blockNumber)
focal_class.identifier: getBlockUuidByNumber
focal_class.modifiers: @Override public
focal_class.parameters: (Metafile metafile, int blockNumber)
focal_class.return: String
focal_class.signature: String getBlockUuidByNumber(Metafile metafile, int blockNumber)
focal_class.class_method_signature: BlockManipulationServiceImpl.getMetafileInfoForLog(Metafile metafile, String methodName)
focal_class.full_signature: private StringBuilder getMetafileInfoForLog(Metafile metafile, String methodName)
focal_class.identifier: getMetafileInfoForLog
focal_class.modifiers: private
focal_class.parameters: (Metafile metafile, String methodName)
focal_class.return: StringBuilder
focal_class.signature: StringBuilder getMetafileInfoForLog(Metafile metafile, String methodName)
focal_method.body: @Override
      public String getNextBlockUuid(Metafile metafile)
              throws MetafileIsFolderException, BlockDoesNotExistException {
          if (metafile.getProperties().containsValue(FileType.DIR.toString())) {
              StringBuilder sb = new StringBuilder();
              sb.append(getMetafileInfoForLog(metafile, "getNextBlockUuid"));
              sb.append(", is folder.");
              throw new MetafileIsFolderException(sb.toString());
          } else {
              if (blockUuidList == null) {
                  blockUuidList = new ArrayList<>(metafile.getBlockUuidList());
              }
  
              if (blockUuidList.isEmpty()) {
                  StringBuilder sb = new StringBuilder();
                  sb.append(getMetafileInfoForLog(metafile, "getNextBlockUuid"));
                  sb.append(" does not have a block.");
                  throw new BlockDoesNotExistException(sb.toString());
              }
          }
  
          return blockUuidList.remove(0);
      }
focal_method.class_method_signature: BlockManipulationServiceImpl.getNextBlockUuid(Metafile metafile)
focal_method.full_signature: @Override public String getNextBlockUuid(Metafile metafile)
focal_method.identifier: getNextBlockUuid
focal_method.invocations: containsValue getProperties toString append getMetafileInfoForLog append toString getBlockUuidList isEmpty append getMetafileInfoForLog append toString remove
focal_method.modifiers: @Override public
focal_method.parameters: (Metafile metafile)
focal_method.return: String
focal_method.signature: String getNextBlockUuid(Metafile metafile)