Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
7186a4a2
Commit
7186a4a2
authored
Apr 09, 2019
by
Ahmed Ashour
Committed by
skylot
Apr 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add two cases for switch-try-break combination (PR #575)
parent
ab4721a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
TestSwitchTryBreak.java
...jadx/tests/integration/conditions/TestSwitchTryBreak.java
+41
-0
TestSwitchTryBreak2.java
...adx/tests/integration/conditions/TestSwitchTryBreak2.java
+41
-0
No files found.
jadx-core/src/test/java/jadx/tests/integration/conditions/TestSwitchTryBreak.java
0 → 100644
View file @
7186a4a2
package
jadx
.
tests
.
integration
.
conditions
;
import
org.junit.jupiter.api.Test
;
import
jadx.NotYetImplemented
;
import
jadx.tests.api.IntegrationTest
;
public
class
TestSwitchTryBreak
extends
IntegrationTest
{
public
static
class
TestCls
{
public
void
test
(
int
x
)
{
switch
(
x
)
{
case
0
:
return
;
case
1
:
String
res
;
if
(
"android"
.
equals
(
toString
()))
{
res
=
"hello"
;
}
else
{
try
{
if
(
String
.
CASE_INSENSITIVE_ORDER
!=
null
)
{
break
;
}
res
=
"hi"
;
}
catch
(
Exception
e
)
{
break
;
}
}
System
.
out
.
println
(
res
);
}
System
.
out
.
println
(
"returning"
);
}
}
@Test
@NotYetImplemented
public
void
test
()
{
getClassNode
(
TestCls
.
class
);
}
}
jadx-core/src/test/java/jadx/tests/integration/conditions/TestSwitchTryBreak2.java
0 → 100644
View file @
7186a4a2
package
jadx
.
tests
.
integration
.
conditions
;
import
org.junit.jupiter.api.Test
;
import
jadx.NotYetImplemented
;
import
jadx.tests.api.IntegrationTest
;
public
class
TestSwitchTryBreak2
extends
IntegrationTest
{
public
static
class
TestCls
{
public
void
test
(
int
x
)
{
switch
(
x
)
{
case
0
:
return
;
case
1
:
String
res
;
if
(
"android"
.
equals
(
toString
()))
{
res
=
"hello"
;
}
else
{
try
{
if
(
x
==
5
)
{
break
;
}
res
=
"hi"
;
}
catch
(
Exception
e
)
{
break
;
}
}
System
.
out
.
println
(
res
);
}
System
.
out
.
println
(
"returning"
);
}
}
@Test
@NotYetImplemented
public
void
test
()
{
getClassNode
(
TestCls
.
class
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment