Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5329025
ASTTest1.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 20, 7:04 PM
Size
1 KB
Mime Type
text/x-java
Expires
Sun, Nov 22, 7:04 PM (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
314138
Attached To
rXR Xreate
ASTTest1.java
View Options
package
org.xreate
;
import
com.google.common.collect.ListMultimap
;
import
com.google.common.collect.Maps
;
import
java.lang.reflect.Method
;
import
java.util.List
;
import
java.util.Map
;
import
junit.framework.Test
;
import
junit.framework.TestCase
;
import
junit.framework.TestSuite
;
/**
* Unit test for simple App.
*/
public
class
ASTTest1
extends
TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public
ASTTest1
(
String
testName
)
{
super
(
testName
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
ASTTest1
.
class
);
}
/**
* Rigourous Test :-)
*/
public
void
testAST1
()
throws
NoSuchMethodException
,
IllegalAccessException
,
Throwable
{
ASTVar
x
=
new
ASTVar
();
ASTValue
y
=
new
ASTValue
(
10
);
ASTAssignment
as
=
new
ASTAssignment
();
as
.
var
=
x
;
as
.
value
=
y
;
ComputableAnalysis
analysis
=
new
ComputableAnalysis
();
ASTNode
result
=
as
.
acceptComputableVisitor
(
analysis
);
assertTrue
(
true
);
}
}
Event Timeline
Log In to Comment