Skip to content

Commit

Permalink
Modify code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Willhow-Gao authored May 6, 2024
1 parent 015559e commit d656b4c
Showing 1 changed file with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.apache.rocketmq.client.impl.consumer;

import org.apache.rocketmq.client.consumer.DefaultLitePullConsumer;
Expand Down Expand Up @@ -54,23 +70,23 @@ public void testIsSetEqual2() throws InvocationTargetException, IllegalAccessExc
* The two null sets should be equal
*/
@Test
public void testIsSetEqual3() throws InvocationTargetException, IllegalAccessException{
public void testIsSetEqual3() throws InvocationTargetException, IllegalAccessException {
Set<MessageQueue> set1 = null;
Set<MessageQueue> set2 = null;
boolean equalResult = (boolean) isSetEqualMethod.invoke(consumer, set1, set2);
Assert.assertTrue(equalResult);
}

@Test
public void testIsSetEqual4() throws InvocationTargetException, IllegalAccessException{
public void testIsSetEqual4() throws InvocationTargetException, IllegalAccessException {
Set<MessageQueue> set1 = null;
Set<MessageQueue> set2 = new HashSet<>();
boolean equalResult = (boolean) isSetEqualMethod.invoke(consumer, set1, set2);
Assert.assertFalse(equalResult);
}

@Test
public void testIsSetEqual5() throws InvocationTargetException, IllegalAccessException{
public void testIsSetEqual5() throws InvocationTargetException, IllegalAccessException {
Set<MessageQueue> set1 = new HashSet<>();
set1.add(new MessageQueue("testTopic","testBroker",111));
Set<MessageQueue> set2 = new HashSet<>();
Expand Down

0 comments on commit d656b4c

Please sign in to comment.