use of io.fabric8.maven.plugin.mojo.build.ResourceMojoUtil.getSingletonTemplate in project fabric8-maven-plugin by fabric8io.
the class ResourceMojoUtilTest method getSingletonTemplateShouldReturnSingleEntry.
@Test
public void getSingletonTemplateShouldReturnSingleEntry(@Mocked KubernetesList mockList, @Mocked Template mockTemplate) {
new Expectations() {
{
mockList.getItems();
result = Collections.singletonList(mockTemplate);
}
};
final Template result = ResourceMojoUtil.getSingletonTemplate(mockList);
assertSame(mockTemplate, result);
}
Aggregations