forked from fanruan/design
Browse Source
* commit '1ee4bfc3bf63eb857dcf00efc69fe8476c58b136': fix REPORT-25003 && REPORT-24491feature/big-screen
Hades
5 years ago
3 changed files with 43 additions and 34 deletions
@ -0,0 +1,24 @@ |
|||||||
|
package com.fr.design.os.impl; |
||||||
|
|
||||||
|
import com.fr.general.GeneralContext; |
||||||
|
import junit.framework.TestCase; |
||||||
|
import org.junit.Assert; |
||||||
|
import org.junit.Test; |
||||||
|
|
||||||
|
import java.util.Locale; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author hades |
||||||
|
* @version 10.0 |
||||||
|
* Created by hades on 2020/1/16 |
||||||
|
*/ |
||||||
|
public class SupportOSImplTest extends TestCase { |
||||||
|
|
||||||
|
@Test |
||||||
|
public void testAutoPush() { |
||||||
|
Assert.assertTrue(SupportOSImpl.AUTOPUSHUPDATE.support()); |
||||||
|
GeneralContext.setLocale(Locale.TAIWAN); |
||||||
|
Assert.assertFalse(SupportOSImpl.AUTOPUSHUPDATE.support()); |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue