forked from matomo-org/matomo-java-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPiwikLocaleTest.java
More file actions
69 lines (58 loc) · 1.35 KB
/
PiwikLocaleTest.java
File metadata and controls
69 lines (58 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Piwik Java Tracker
*
* @link https://github.com/piwik/piwik-java-tracker
* @license https://github.com/piwik/piwik-java-tracker/blob/master/LICENSE BSD-3 Clause
*/
package org.piwik.java.tracking;
import java.util.Locale;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
*
* @author brettcsorba
*/
public class PiwikLocaleTest{
PiwikLocale locale;
public PiwikLocaleTest(){
}
@BeforeClass
public static void setUpClass(){
}
@AfterClass
public static void tearDownClass(){
}
@Before
public void setUp(){
locale = new PiwikLocale(Locale.US);
}
@After
public void tearDown(){
}
/**
* Test of getLocale method, of class PiwikLocale.
*/
@Test
public void testConstructor(){
assertEquals(Locale.US, locale.getLocale());
}
/**
* Test of setLocale method, of class PiwikLocale.
*/
@Test
public void testLocale(){
locale.setLocale(Locale.GERMANY);
assertEquals(Locale.GERMANY, locale.getLocale());
}
/**
* Test of toString method, of class PiwikLocale.
*/
@Test
public void testToString(){
assertEquals("us", locale.toString());
}
}