File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed
Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ package great .project ;
2+
3+ /*
4+ * Copyright (c) 2025. The BifroMQ Authors. All Rights Reserved.
5+ *
6+ * Licensed under the Apache License, Version 2.0 (the "License");
7+ * you may not use this file except in compliance with the License.
8+ * You may obtain a copy of the License at
9+ * http://www.apache.org/licenses/LICENSE-2.0
10+ * Unless required by applicable law or agreed to in writing,
11+ * software distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and limitations under the License.
14+ */
15+
16+ public class Foo {
17+
18+ public void foo () {
19+ System .out .println ("Foo" );
20+ }
21+
22+ public void bar (boolean isPrint ) {
23+ if (isPrint ) {
24+ foo ();
25+ } else {
26+ System .out .println (System .currentTimeMillis ());
27+ }
28+ }
29+
30+ }
Original file line number Diff line number Diff line change 1+ package great .project ;
2+
3+ /*
4+ * Copyright (c) 2025. The BifroMQ Authors. All Rights Reserved.
5+ *
6+ * Licensed under the Apache License, Version 2.0 (the "License");
7+ * you may not use this file except in compliance with the License.
8+ * You may obtain a copy of the License at
9+ * http://www.apache.org/licenses/LICENSE-2.0
10+ * Unless required by applicable law or agreed to in writing,
11+ * software distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and limitations under the License.
14+ */
15+
16+ import org .testng .annotations .Test ;
17+
18+ public class FooTest {
19+
20+ @ Test
21+ public void foo () {
22+ Foo foo = new Foo ();
23+ foo .foo ();
24+ }
25+
26+ @ Test
27+ public void bar () {
28+ Foo foo = new Foo ();
29+ foo .bar (true );
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments