diff --git a/storage/src/test/java/com/zfoo/storage/util/lambda/TestFieldUtils.java b/storage/src/test/java/com/zfoo/storage/util/TestFieldUtils.java similarity index 56% rename from storage/src/test/java/com/zfoo/storage/util/lambda/TestFieldUtils.java rename to storage/src/test/java/com/zfoo/storage/util/TestFieldUtils.java index c95ddf60..eff121e7 100644 --- a/storage/src/test/java/com/zfoo/storage/util/lambda/TestFieldUtils.java +++ b/storage/src/test/java/com/zfoo/storage/util/TestFieldUtils.java @@ -1,4 +1,16 @@ -package com.zfoo.storage.util.lambda; +/* + * Copyright (C) 2020 The zfoo Authors + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. + */ + +package com.zfoo.storage.util; import com.zfoo.protocol.util.FieldUtils; import org.junit.Test; diff --git a/storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunction.java b/storage/src/test/java/com/zfoo/storage/util/TestLambdaFunction.java similarity index 65% rename from storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunction.java rename to storage/src/test/java/com/zfoo/storage/util/TestLambdaFunction.java index 24d6a947..bd8a50b2 100644 --- a/storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunction.java +++ b/storage/src/test/java/com/zfoo/storage/util/TestLambdaFunction.java @@ -1,8 +1,20 @@ -package com.zfoo.storage.util.lambda; +/* + * Copyright (C) 2020 The zfoo Authors + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. + */ + +package com.zfoo.storage.util; import com.zfoo.storage.resource.TeacherResource; -import com.zfoo.storage.util.LambdaUtils; import com.zfoo.storage.util.function.Func1; +import com.zfoo.storage.util.lambda.LambdaMeta; import org.junit.Test; import java.io.Serializable; diff --git a/storage/src/test/java/com/zfoo/storage/util/TestLambdaFunctionCache.java b/storage/src/test/java/com/zfoo/storage/util/TestLambdaFunctionCache.java new file mode 100644 index 00000000..6e0fde5d --- /dev/null +++ b/storage/src/test/java/com/zfoo/storage/util/TestLambdaFunctionCache.java @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2020 The zfoo Authors + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and limitations under the License. + */ + +package com.zfoo.storage.util; + +import com.zfoo.storage.resource.StudentResource; +import com.zfoo.storage.util.function.Func1; +import org.junit.Test; + +/** + * @author veione + */ +public class TestLambdaFunctionCache { + + @Test + public void testFunctionCache() { + Func1 nameFunc = StudentResource::getName; + System.out.println(LambdaUtils.getMethodName(nameFunc)); + System.out.println(LambdaUtils.getMethodName(nameFunc)); + } +} diff --git a/storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunctionCache.java b/storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunctionCache.java deleted file mode 100644 index 80daac03..00000000 --- a/storage/src/test/java/com/zfoo/storage/util/lambda/TestLambdaFunctionCache.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.zfoo.storage.util.lambda; - -import com.zfoo.storage.resource.StudentResource; -import com.zfoo.storage.util.LambdaUtils; -import com.zfoo.storage.util.function.Func1; -import org.junit.Test; - -/** - * @author veione - */ -public class TestLambdaFunctionCache { - - @Test - public void testFunctionCache() { - Func1 nameFunc = StudentResource::getName; - System.out.println(LambdaUtils.getMethodName(nameFunc)); - System.out.println(LambdaUtils.getMethodName(nameFunc)); - } -}