Skip to content

Commit 4a62b07

Browse files
author
thk123
committed
Simplifying method names for unit test
1 parent ee39620 commit 4a62b07

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Binary file not shown.

unit/java_bytecode/java_bytecode_parse_generics/GenericClass.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ void method4(GenericInnerClass<T> input)
4949

5050
}
5151

52-
InnerClass method5()
52+
InnerClass ret_method1()
5353
{
5454
return null;
5555
}
5656

57-
GenericInnerClass<Foo> method6()
57+
GenericInnerClass<Foo> ret_method2()
5858
{
5959
return null;
6060
}
6161

62-
GenericInnerClass<T> method7()
62+
GenericInnerClass<T> ret_method3()
6363
{
6464
return null;
6565
}

unit/java_bytecode/java_bytecode_parse_generics/parse_generic_inner_class.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ SCENARIO(
302302
}
303303
}
304304
}
305-
THEN("Method 5 should return a GenericClass$InnerClass")
305+
THEN("Ret Method 1 should return a GenericClass$InnerClass")
306306
{
307-
const std::string func_name = ".method5";
307+
const std::string func_name = ".ret_method1";
308308
const std::string func_descriptor = ":()LGenericClass$InnerClass;";
309309
const std::string process_func_name =
310310
class_prefix + func_name + func_descriptor;
@@ -332,9 +332,9 @@ SCENARIO(
332332
generic_param.type_variable() == symbol_typet("java::GenericClass::T"));
333333
}
334334
}
335-
THEN("Method 6 should return a GenericClass$GenericInnerClass")
335+
THEN("Ret method 2 should return a GenericClass$GenericInnerClass")
336336
{
337-
const std::string func_name = ".method6";
337+
const std::string func_name = ".ret_method2";
338338
const std::string func_descriptor = ":()LGenericClass$GenericInnerClass;";
339339
const std::string process_func_name =
340340
class_prefix + func_name + func_descriptor;
@@ -373,9 +373,9 @@ SCENARIO(
373373
}
374374
}
375375
}
376-
THEN("Method 7 should return a GenericClass$GenericInnerClass")
376+
THEN("Ret method 3 should return a GenericClass$GenericInnerClass")
377377
{
378-
const std::string func_name = ".method7";
378+
const std::string func_name = ".ret_method3";
379379
const std::string func_descriptor = ":()LGenericClass$GenericInnerClass;";
380380
const std::string process_func_name =
381381
class_prefix + func_name + func_descriptor;

0 commit comments

Comments
 (0)