Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
6bdf86cd
K
kotlin
项目概览
硅谷海盗
/
kotlin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kotlin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6bdf86cd
编写于
10月 21, 2011
作者:
D
Dmitry Jemerov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
JetOverridingTest -> JetLiteFixture
上级
a615ee26
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
19 deletion
+10
-19
compiler/tests/org/jetbrains/jet/JetLiteFixture.java
compiler/tests/org/jetbrains/jet/JetLiteFixture.java
+4
-0
compiler/tests/org/jetbrains/jet/types/JetOverridingTest.java
...iler/tests/org/jetbrains/jet/types/JetOverridingTest.java
+4
-11
compiler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
...ler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
+2
-8
未找到文件。
compiler/tests/org/jetbrains/jet/JetLiteFixture.java
浏览文件 @
6bdf86cd
...
...
@@ -32,6 +32,10 @@ public abstract class JetLiteFixture extends UsefulTestCase {
myFullDataPath
=
getTestDataPath
()
+
"/"
+
dataPath
;
}
public
JetLiteFixture
()
{
myFullDataPath
=
getTestDataPath
();
}
protected
String
getTestDataPath
()
{
return
JetTestCaseBase
.
getTestDataPathBase
();
}
...
...
compiler/tests/org/jetbrains/jet/types/JetOverridingTest.java
浏览文件 @
6bdf86cd
package
org.jetbrains.jet.types
;
import
com.intellij.codeInsight.daemon.LightDaemonAnalyzerTestCas
e
;
import
com.intellij.openapi.application.PathManager
;
import
org.jetbrains.jet.JetLiteFixtur
e
;
import
org.jetbrains.jet.JetTestCaseBase
;
import
org.jetbrains.jet.JetTestUtils
;
import
org.jetbrains.jet.lang.JetSemanticServices
;
import
org.jetbrains.jet.lang.descriptors.FunctionDescriptor
;
...
...
@@ -11,14 +11,11 @@ import org.jetbrains.jet.lang.psi.JetPsiFactory;
import
org.jetbrains.jet.lang.resolve.ClassDescriptorResolver
;
import
org.jetbrains.jet.lang.resolve.OverridingUtil
;
import
org.jetbrains.jet.lang.types.JetStandardLibrary
;
import
org.jetbrains.jet.parsing.JetParsingTest
;
import
java.io.File
;
/**
* @author abreslav
*/
public
class
JetOverridingTest
extends
LightDaemonAnalyzerTestCas
e
{
public
class
JetOverridingTest
extends
JetLiteFixtur
e
{
private
ModuleDescriptor
root
=
new
ModuleDescriptor
(
"test_root"
);
private
JetStandardLibrary
library
;
...
...
@@ -35,11 +32,7 @@ public class JetOverridingTest extends LightDaemonAnalyzerTestCase {
@Override
protected
String
getTestDataPath
()
{
return
getHomeDirectory
()
+
"/compiler/testData"
;
}
private
static
String
getHomeDirectory
()
{
return
new
File
(
PathManager
.
getResourceRoot
(
JetParsingTest
.
class
,
"/org/jetbrains/jet/parsing/JetParsingTest.class"
)).
getParentFile
().
getParentFile
().
getParent
();
return
JetTestCaseBase
.
getTestDataPathBase
();
}
public
void
testBasic
()
throws
Exception
{
...
...
compiler/tests/org/jetbrains/jet/types/JetTypeCheckerTest.java
浏览文件 @
6bdf86cd
package
org.jetbrains.jet.types
;
import
com.google.common.collect.Sets
;
import
com.intellij.openapi.application.PathManager
;
import
com.intellij.openapi.project.Project
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
import
org.jetbrains.jet.JetLiteFixture
;
import
org.jetbrains.jet.JetTestCaseBase
;
import
org.jetbrains.jet.JetTestUtils
;
import
org.jetbrains.jet.lang.JetSemanticServices
;
import
org.jetbrains.jet.lang.descriptors.*
;
...
...
@@ -19,9 +19,7 @@ import org.jetbrains.jet.lang.resolve.scopes.receivers.ExpressionReceiver;
import
org.jetbrains.jet.lang.resolve.scopes.receivers.ReceiverDescriptor
;
import
org.jetbrains.jet.lang.types.*
;
import
org.jetbrains.jet.lexer.JetTokens
;
import
org.jetbrains.jet.parsing.JetParsingTest
;
import
java.io.File
;
import
java.util.*
;
/**
...
...
@@ -53,11 +51,7 @@ public class JetTypeCheckerTest extends JetLiteFixture {
@Override
protected
String
getTestDataPath
()
{
return
getHomeDirectory
()
+
"/compiler/testData"
;
}
private
static
String
getHomeDirectory
()
{
return
new
File
(
PathManager
.
getResourceRoot
(
JetParsingTest
.
class
,
"/org/jetbrains/jet/parsing/JetParsingTest.class"
)).
getParentFile
().
getParentFile
().
getParent
();
return
JetTestCaseBase
.
getTestDataPathBase
();
}
public
void
testConstants
()
throws
Exception
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录