test_class.file: smart-hadoop-support/smart-hadoop/src/test/java/org/smartdata/hdfs/action/TestCheckStorageAction.java
test_class.identifier: TestCheckStorageAction
test_class.superclass: extends MiniClusterHarness
test_case.body: @Test
    public void testCheckStorageActionWithWrongFileName() throws IOException {
      CheckStorageAction checkStorageAction = new CheckStorageAction();
      checkStorageAction.setDfsClient(dfsClient);
      checkStorageAction.setContext(smartContext);
  
      final String file = "/testPath/wrongfile";
      dfsClient.mkdirs("/testPath");
  
      Map<String, String> args = new HashMap();
      args.put(CheckStorageAction.FILE_PATH, file);
      // do CheckStorageAction
      checkStorageAction.init(args);
      checkStorageAction.run();
      Assert.assertNotNull(checkStorageAction.getActionStatus().getThrowable());
    }
test_case.class_method_signature: TestCheckStorageAction.testCheckStorageActionWithWrongFileName()
test_case.full_signature: @Test public void testCheckStorageActionWithWrongFileName()
test_case.identifier: testCheckStorageActionWithWrongFileName
test_case.invocations: setDfsClient setContext mkdirs put init run assertNotNull getThrowable getActionStatus
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCheckStorageActionWithWrongFileName()
focal_class.declarator: fileName
focal_class.modifier: private
focal_class.original_string: private String fileName;
focal_class.type: String
focal_class.var_name: fileName
focal_class.file: smart-hadoop-support/smart-hadoop/src/main/java/org/smartdata/hdfs/action/CheckStorageAction.java
focal_class.identifier: CheckStorageAction
focal_class.class_method_signature: CheckStorageAction.init(Map<String, String> args)
focal_class.full_signature: @Override public void init(Map<String, String> args)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, String> args)
focal_class.return: void
focal_class.signature: void init(Map<String, String> args)
focal_class.class_method_signature: CheckStorageAction.execute()
focal_class.full_signature: @Override protected void execute()
focal_class.identifier: execute
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void execute()
focal_class.superclass: extends HdfsAction
focal_method.body: @Override
    public void init(Map<String, String> args) {
      super.init(args);
      fileName = args.get(FILE_PATH);
    }
focal_method.class_method_signature: CheckStorageAction.init(Map<String, String> args)
focal_method.full_signature: @Override public void init(Map<String, String> args)
focal_method.identifier: init
focal_method.invocations: init get
focal_method.modifiers: @Override public
focal_method.parameters: (Map<String, String> args)
focal_method.return: void
focal_method.signature: void init(Map<String, String> args)