Skip to content

Commit

Permalink
ALFREDAPI-548 [Fix] CheckoutChackingTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
codingBenVdS committed Jul 19, 2024
1 parent 4d964b1 commit 933c5f3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Created by kenneth on 31.03.16.
Expand All @@ -25,20 +27,19 @@ public class CheckoutCheckinTest extends RestV1BaseTest {
public CheckoutCheckinTest(){
// initialise the local beans
nodeService = serviceRegistry.getNodeService();
originalNoderef = init().get(RestV1BaseTest.TESTFILE_NAME);
}

@Before
public void setup() {
AuthenticationUtil.setAdminUserAsFullyAuthenticatedUser();
originalNoderef = init().get(RestV1BaseTest.TESTFILE_NAME);
}

@Test
public void testCheckoutPostAndCheckin() throws IOException, JSONException {
NoderefResult checkoutResult = doPost(makeAlfrescoBaseurlAdmin() + "/apix/v1/workingcopies",
NoderefResult.class,
"{'original':'%s'}", originalNoderef.getValue());

NodeRef workingCopyRef = checkoutResult.getNoderef();

final NodeRef testWorkingCopyRef = workingCopyRef;
Expand Down

0 comments on commit 933c5f3

Please sign in to comment.