mirror of
https://github.com/revanced/Apktool.git
synced 2024-09-12 09:16:37 +02:00
test: adjust test for SDK S/T
This commit is contained in:
parent
f4a75fe761
commit
caee50b35b
@ -18,11 +18,9 @@ package brut.androlib.androlib;
|
||||
|
||||
import brut.androlib.BaseTest;
|
||||
import brut.androlib.res.AndrolibResources;
|
||||
import org.junit.Test;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.junit.*;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class InvalidSdkBoundingTest extends BaseTest {
|
||||
@ -75,6 +73,16 @@ public class InvalidSdkBoundingTest extends BaseTest {
|
||||
assertEquals("25", androlibResources.checkTargetSdkVersionBounds());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkForShortHandSTag() {
|
||||
AndrolibResources androlibResources = new AndrolibResources();
|
||||
|
||||
Map<String, String> sdkInfo = new LinkedHashMap<>();
|
||||
sdkInfo.put("targetSdkVersion", "S");
|
||||
|
||||
androlibResources.setSdkInfo(sdkInfo);
|
||||
assertEquals("31", androlibResources.checkTargetSdkVersionBounds());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkForShortHandSdkTag() {
|
||||
@ -92,7 +100,7 @@ public class InvalidSdkBoundingTest extends BaseTest {
|
||||
AndrolibResources androlibResources = new AndrolibResources();
|
||||
|
||||
Map<String, String> sdkInfo = new LinkedHashMap<>();
|
||||
sdkInfo.put("targetSdkVersion", "S");
|
||||
sdkInfo.put("targetSdkVersion", "T");
|
||||
|
||||
androlibResources.setSdkInfo(sdkInfo);
|
||||
assertEquals("10000", androlibResources.checkTargetSdkVersionBounds());
|
||||
|
Loading…
Reference in New Issue
Block a user