Sha256: c0d81f71a505bd1c77e918d62ca78e746705611281425427da89177eda8fca91
Contents?: true
Size: 965 Bytes
Versions: 4
Compression:
Stored size: 965 Bytes
Contents
package <%=@package%>.unit.<%=@model_name.downcase%>.assembler; <%=@licence%> import <%=@package%>.assembler.<%=@model_name%>Assembler; import org.mockito.Mockito; import org.springframework.cloud.client.loadbalancer.LoadBalancerClient; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.web.PagedResourcesAssembler; import org.springframework.hateoas.config.EnableHypermediaSupport; /** * Configuration class for <%=@model_name%> unit tests. * @author <%=@user_name%> */ @Configuration @EnableHypermediaSupport(type = {EnableHypermediaSupport.HypermediaType.HAL}) public class <%=@model_name%>AssemblerUnitTestConfig { @Bean public LoadBalancerClient loadBalancerClient() { return Mockito.mock(LoadBalancerClient.class); } @Bean public <%=@model_name%>Assembler <%=@model_name.downcase%>Assembler() { return new <%=@model_name%>Assembler(); } }
Version data entries
4 entries across 4 versions & 1 rubygems