<commit_before>package net.vexelon.currencybg.srv.utils;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

import org.junit.Test;

import net.vexelon.currencybg.srv.Defs;

public class DateTimeUtilsTests {

	private String testISOTime_01 = "2016-07-16T21:40:06+0200";
	private String testISOTime_02 = "2016-07-16T22:40:06+0300";

	@Test
	public void test_Convert_TimeZone() {
		try {
			assertEquals(testISOTime_02,
					DateTimeUtils.toTimeZone(testISOTime_01, Defs.DATETIME_ZONE_FORMAT, "Europe/Sofia"));
		} catch (Exception e) {
			e.printStackTrace();
			fail(e.getMessage());
		}
	}

	@Test
	public void test_Modify_Date_Layout() {
		try {
			assertEquals("2016-07-16 21:40:06",
					DateTimeUtils.removeTimeZone(testISOTime_01, Defs.DATETIME_ZONE_FORMAT, "Europe/Berlin"));

			assertEquals("2016-07-16 22:40:06",
					DateTimeUtils.removeTimeZone(testISOTime_02, Defs.DATETIME_ZONE_FORMAT, "Europe/Sofia"));
		} catch (Exception e) {
			e.printStackTrace();
			fail(e.getMessage());
		}
	}

}
<commit_msg>Add one more convert time zone unit test<commit_after>package net.vexelon.currencybg.srv.utils;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

import org.junit.Test;

import net.vexelon.currencybg.srv.Defs;

public class DateTimeUtilsTests {

	private String testISOTime_01 = "2016-07-16T21:40:06+0200";
	private String testISOTime_02 = "2016-07-16T22:40:06+0300";

	@Test
	public void test_Convert_TimeZone() {
		try {
			assertEquals(testISOTime_02,
					DateTimeUtils.toTimeZone(testISOTime_01, Defs.DATETIME_ZONE_FORMAT, "Europe/Sofia"));

			assertEquals(testISOTime_01,
					DateTimeUtils.toTimeZone(testISOTime_02, Defs.DATETIME_ZONE_FORMAT, "Europe/Berlin"));
		} catch (Exception e) {
			e.printStackTrace();
			fail(e.getMessage());
		}
	}

	@Test
	public void test_Modify_Date_Layout() {
		try {
			assertEquals("2016-07-16 21:40:06",
					DateTimeUtils.removeTimeZone(testISOTime_01, Defs.DATETIME_ZONE_FORMAT, "Europe/Berlin"));

			assertEquals("2016-07-16 22:40:06",
					DateTimeUtils.removeTimeZone(testISOTime_02, Defs.DATETIME_ZONE_FORMAT, "Europe/Sofia"));
		} catch (Exception e) {
			e.printStackTrace();
			fail(e.getMessage());
		}
	}

}

{'fraction_non_alphanumeric': 0.12778272484416742, 'fraction_numerical': 0.06945681211041853, 'mean_word_length': 5.008021390374331, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5564688', 'n_tokens_mistral': 980, 'n_tokens_neox': 818, 'n_words': 125}