@ -16,7 +16,6 @@
* /
package org.apache.dolphinscheduler.api.controller ;
import com.fasterxml.jackson.databind.node.ObjectNode ;
import org.apache.dolphinscheduler.api.enums.Status ;
import org.apache.dolphinscheduler.api.utils.Result ;
import org.apache.dolphinscheduler.common.enums.ResourceType ;
@ -53,8 +52,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -77,8 +74,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -280,8 +275,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -302,8 +295,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -323,8 +314,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -343,8 +332,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -364,8 +351,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -385,8 +370,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -405,8 +388,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -426,8 +407,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
@ -445,8 +424,6 @@ public class ResourcesControllerTest extends AbstractControllerTest{
. andReturn ( ) ;
Result result = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) , Result . class ) ;
result . getCode ( ) . equals ( Status . SUCCESS . getCode ( ) ) ;
ObjectNode object = JSONUtils . parseObject ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;
Assert . assertEquals ( Status . SUCCESS . getCode ( ) , result . getCode ( ) . intValue ( ) ) ;
logger . info ( mvcResult . getResponse ( ) . getContentAsString ( ) ) ;