Skip to content

Commit

Permalink
Fixed Tests of the model module
Browse files Browse the repository at this point in the history
- fix for ReportDesignHandleTest (static TOC-Styles in connection with
instance equality check is problematic)

Signed-off-by: Alexander Lehmann <a.lehm@gmx.de>
  • Loading branch information
Flugtiger committed Mar 10, 2021
1 parent 7c1f517 commit 6642a01
Showing 1 changed file with 11 additions and 7 deletions.
Expand Up @@ -19,6 +19,8 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.eclipse.birt.report.model.api.DesignFileException;
import org.eclipse.birt.report.model.api.IAbsoluteFontSizeValueProvider;
Expand Down Expand Up @@ -77,22 +79,23 @@
public class DesignSessionImpl
{

/**
* list each item is <code>Style</code>
*/
private static final Logger LOG = Logger.getLogger(DesignSessionImpl.class.getName());

private static List<DesignElement> defaultTOCStyleList = null;

/**
* file with TOC default value.
*/

public static final String TOC_DEFAULT_VALUE = "templates/TOCDefaultValue.xml";//$NON-NLS-1$

/**
* list each item is <code>Style</code>
*/
private List<DesignElement> defaultTOCStyleList = null;

/**
* Resource path.
*/

protected String resourceFolder = null;

/**
Expand Down Expand Up @@ -154,8 +157,7 @@ public class DesignSessionImpl
/**
* The flag to determine whether the TOC style has been initialized.
*/

private static Boolean isTOCStyleInitialized = Boolean.FALSE;
private Boolean isTOCStyleInitialized = Boolean.FALSE;

/**
* Constructor.
Expand Down Expand Up @@ -1375,10 +1377,12 @@ private void initDefaultTOCStyle( )
}
catch ( DesignFileException e )
{
LOG.log(Level.SEVERE, "Could not init default TOC style", e);
return;
}
catch ( IOException e )
{
LOG.log(Level.SEVERE, "Could not init default TOC style", e);
return;
}

Expand Down

0 comments on commit 6642a01

Please sign in to comment.