Skip to content

Commit

Permalink
Tag for Release apache-ofbiz-16.11.03
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/tags/REL-16.11.03@1799442 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jacopoc committed Jun 21, 2017
2 parents 483220a + 979e78f commit dc2155c
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,32 @@
*******************************************************************************/
package org.apache.ofbiz.entity.util;

import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.model.ModelEntity;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

public class EntitySaxReaderTests {
private boolean logVerboseOn;

@Before
public void initialize() {
logVerboseOn = Debug.isOn(Debug.VERBOSE); // save the current setting (to be restored after the tests)
Debug.set(Debug.VERBOSE, false); // disable verbose logging: this is necessary to avoid a test error in the "parse" unit test
}

@After
public void restore() {
Debug.set(Debug.VERBOSE, logVerboseOn); // restore the verbose log setting
}


@Test
public void constructorWithDefaultTimeout() {
Delegator delegator = mock(Delegator.class);
Expand Down

0 comments on commit dc2155c

Please sign in to comment.