@@ -0,0 +1,1678 @@
+package org.ow2.proactive.workflow_catalog.rest.controller;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.ow2.proactive.workflow_catalog.rest.Application;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup;%0Aimport static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;%0A%0A/**%0A * Created by paraita on 1/7/16.%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = Application.class)%0A@WebAppConfiguration%0Apublic class WorkflowControllerTest %7B%0A%0A    private MockMvc mockMvc;%0A%0A    @Autowired%0A    private WebApplicationContext webApplicationContext;%0A%0A    @Before%0A    public void setup() %7B%0A        //this.mockMvc = standaloneSetup(new WorkflowController()).build();%0A        this.mockMvc = webAppContextSetup(webApplicationContext).build();%0A    %7D%0A%0A    @Test%0A    public void testList() throws Exception %7B%0A        this.mockMvc.perform(get(%22/buckets/1/workflows%22)).andExpect(status().isNotFound());%0A    %7D%0A%7D

Test the list method implementation of the workflows rest controller