Skip to content

Commit

Permalink
#22857 unit test for getDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Aug 31, 2022
1 parent 20e3c74 commit ca9d726
Showing 1 changed file with 0 additions and 17 deletions.
Expand Up @@ -4,10 +4,7 @@
import com.dotcms.content.business.json.ContentletJsonHelper;
import com.dotcms.contenttype.model.type.ContentType;
import com.dotcms.datagen.ContentletDataGen;
import com.dotcms.mock.request.FakeHttpRequest;
import com.dotcms.mock.response.BaseResponse;
import com.dotcms.util.IntegrationTestInitService;
import com.dotmarketing.beans.Host;
import com.dotmarketing.business.APILocator;
import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
Expand All @@ -17,12 +14,9 @@
import io.vavr.Tuple2;
import io.vavr.control.Try;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -95,17 +89,6 @@ public static void prepare() throws Exception {
IntegrationTestInitService.getInstance().init();
}

@Before
public void before () {

final Host host = Try.of(()->APILocator.getHostAPI().findDefaultHost(
APILocator.systemUser(), false)).getOrNull();
final String hostname = null == host? host.getHostname():"dotcms.com"; // fake host
final HttpServletRequest requestProxy = new FakeHttpRequest(hostname, null).request();
final HttpServletResponse responseProxy = new BaseResponse().response();

}

/**
* Method to test: {@link StoryBlockAPI#refreshStoryBlockValueReferences(Object)}
* Given Scenario: This will create a story block contentlet, adds a rich content and retrieve the json.
Expand Down

0 comments on commit ca9d726

Please sign in to comment.