Java Code Examples for com.ibm.icu.util.TimeZone#setDefault()

The following examples show how to use com.ibm.icu.util.TimeZone#setDefault() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: APITestCase.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
@Before
   public void apiSetUp() throws Exception
{

	
	defaultTimeZone = TimeZone.getDefault( );
	TimeZone.setDefault( TimeZone.getTimeZone( "GMT" ) );
	DataEngineContext context = DataEngineContext.newInstance( DataEngineContext.DIRECT_PRESENTATION,
			this.scriptContext,
			null,
			null,
			null );
	context.setTmpdir( this.getTempDir( ) );
	PlatformConfig cfg = new PlatformConfig();
	cfg.setTempDir(this.getTempDir( ));
	dataEngine = DataEngine.newDataEngine( cfg, context );
	prepareDataSource( );
}
 
Example 2
Source File: ViewingTest2.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
@After
   public void viewing2TearDown() throws Exception
{
	if( myPreDataEngine != null )
	{
		myPreDataEngine.shutdown( );
		myPreDataEngine.clearCache( dataSource, dataSet );
		myPreDataEngine = null;
	}
	if( myPreDataEngine2 != null )
	{
		myPreDataEngine2.shutdown( );
		myPreDataEngine2.clearCache( dataSource, dataSet );
		myPreDataEngine2 = null;
	}
	TimeZone.setDefault( this.currentTimeZone  );
}
 
Example 3
Source File: ColumnBindingTest.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * 
 */
@Before
   public void columnBindingSetUp() throws Exception
{

	
	TimeZone.setDefault( TimeZone.getTimeZone("GMT+0")  );
}
 
Example 4
Source File: APITestCase.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
@After
   public void apiTearDown() throws Exception
{
	dataEngine.shutdown( );
	closeDataSource( );
	
	TimeZone.setDefault( defaultTimeZone );
}
 
Example 5
Source File: ColumnBindingTest.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * 
 */
@Before
   public void columnBindingSetUp() throws Exception
{

	
	TimeZone.setDefault( TimeZone.getTimeZone("GMT+0")  );
}
 
Example 6
Source File: ColumnBindingTest.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * @throws Exception 
 * 
 */
@After
   public void columnBindingTearDown() throws Exception
{
	TimeZone.setDefault( this.currentTimeZone  );
}
 
Example 7
Source File: ColumnBindingTest.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * @throws Exception 
 * 
 */
@After
   public void columnBindingTearDown() throws Exception
{
	TimeZone.setDefault( this.currentTimeZone  );
}
 
Example 8
Source File: ViewingTest2.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
@Before
   public void viewing2SetUp() throws Exception
{

	
	this.notIncludeAggr = false;
	
	this.add_subquery_on_query = false;
	this.USE_ROW_IN_AGGREGATION = false;

	this.GEN_queryResultID = null;
	this.UPDATE_queryResultID = null;
	this.USE_DATE_IN_COLUMNBINDING = true;
	
	this.GEN_add_subquery = false;
	this.GEN_add_sort = true;
	// dataSetRow.AMOUNT>50
	this.GEN_add_filter = false;
	// dataSetRow.COUNTRY
	this.GEN_add_group = false;
	// print information
	this.GEN_print = false;
	this.GEN_USE_RUNNING_AGGR = false;
	this.GEN_use_invalid_column = false;
	
	// row.AMOUNT_1>200 -> dataSetRow.AMOUNT>200
	this.UPDATE_add_filter = -1;
	// row.AMOUNT_1 ASC
	this.UPDATE_add_sort = false;
	// group on row.AMOUNT_1
	this.UPDATE_add_diff_group = false;
	// dataSetRow.COUNTRY
	this.UPDATE_add_same_group = false;
	// dataSetRow.COUNTRY
	this.UPDATE_add_subquery = 0;
	
	this.USE_DATE_IN_SUBQUERY = false;
	// 0: row.AMOUNT_1>200
	// 1: row.AMOUNT_1>50 && row.AMOUNT_1<7000
	// 2: row.AMOUNT_1>50 && row.AMOUNT_1<700
	this.PRE_add_filter = -1;
	// row.AMOUNT_1 ASC
	this.PRE_add_sort = false;
	
	this.PRE_execute_query = false;
	this.PRE_print_groupinfo = false;
	this.PRE_use_skipto = false;
	this.PRE_use_skipto_num = -1;
	this.PRE_add_group = -1;
	this.PRE_basedon_genfilter = false;
	
	this.GEN_filterDefn = new ArrayList( );
	this.UPDATE_filterDefn = new ArrayList( );
	
	this.TEST_ISEMPTY = false;
	
	TimeZone.setDefault( TimeZone.getTimeZone("GMT+0")  );
	
}