@@ -0,0 +1,1870 @@
+/*******************************************************************************%0A  * Copyright (c) 2017 DocDoku.%0A  * All rights reserved. This program and the accompanying materials%0A  * are made available under the terms of the Eclipse Public License v1.0%0A  * which accompanies this distribution, and is available at%0A  * http://www.eclipse.org/legal/epl-v10.html%0A  *%0A  * Contributors:%0A  *    DocDoku - initial API and implementation%0A  *******************************************************************************/%0A%0Apackage org.polarsys.eplmp.server.rest;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0A%0Aimport static org.mockito.MockitoAnnotations.initMocks;%0A%0Apublic class ChangeItemsResourceTest %7B%0A%0A    @InjectMocks%0A    private ChangeItemsResource changeItemsResource = new ChangeItemsResource();%0A%0A    @Mock%0A    private ChangeIssuesResource issues;%0A%0A    @Mock%0A    private ChangeRequestsResource requests;%0A%0A    @Mock%0A    private ChangeOrdersResource orders;%0A%0A    @Mock%0A    private MilestonesResource milestones;%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        initMocks(this);%0A    %7D%0A%0A    @Test%0A    public void issuesTest() %7B%0A        ChangeIssuesResource _issues = changeItemsResource.issues();%0A        Assert.assertEquals(issues, _issues);%0A    %7D%0A%0A    @Test%0A    public void requestsTest() %7B%0A        ChangeRequestsResource _requests = changeItemsResource.requests();%0A        Assert.assertEquals(requests, _requests);%0A    %7D%0A%0A    @Test%0A    public void ordersTest() %7B%0A        ChangeOrdersResource _orders = changeItemsResource.orders();%0A        Assert.assertEquals(orders, _orders);%0A    %7D%0A%0A    @Test%0A    public void milestonesTest() %7B%0A        MilestonesResource _milestones = changeItemsResource.milestones();%0A        Assert.assertEquals(milestones, _milestones);%0A    %7D%0A%0A%7D%0A

Change items resource unit tests