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
a5a951cf
Commit
a5a951cf
authored
Mar 31, 2019
by
Ahmed Ashour
Committed by
skylot
Mar 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add test case for #535 (PR #545)
parent
a6f935ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
IntegrationTest.java
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
+0
-3
TestVariables7.java
...java/jadx/tests/integration/variables/TestVariables7.java
+38
-0
No files found.
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
View file @
a5a951cf
...
...
@@ -27,9 +27,6 @@ import java.io.IOException;
import
java.lang.reflect.InvocationTargetException
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Modifier
;
import
java.net.URISyntaxException
;
import
java.net.URL
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
...
...
jadx-core/src/test/java/jadx/tests/integration/variables/TestVariables7.java
0 → 100644
View file @
a5a951cf
package
jadx
.
tests
.
integration
.
variables
;
import
static
org
.
hamcrest
.
MatcherAssert
.
assertThat
;
import
static
org
.
hamcrest
.
Matchers
.
containsString
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.junit.jupiter.api.Test
;
import
jadx.NotYetImplemented
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.tests.api.IntegrationTest
;
public
class
TestVariables7
extends
IntegrationTest
{
public
static
class
TestCls
{
public
void
test
()
{
List
list
;
synchronized
(
this
)
{
list
=
new
ArrayList
();
}
for
(
Object
o
:
list
)
{
System
.
out
.
println
(
o
);
}
}
}
@Test
@NotYetImplemented
public
void
test
()
{
ClassNode
cls
=
getClassNode
(
TestCls
.
class
);
String
code
=
cls
.
getCode
().
toString
();
assertThat
(
code
,
containsString
(
" list = new ArrayList"
));
}
}
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