@@ -55,9 +55,9 @@ public boolean constructXMLAndTriggerParallelRunner(List<String> test, String pa
5555 if (runnerLevel != null && runnerLevel .equalsIgnoreCase ("class" )) {
5656 constructXmlSuiteForClassLevelDistributionRunner (test , getTestMethods (setOfMethods ),
5757 suiteName , categoryName , deviceCount );
58- } else if (test != null && !test .isEmpty ()){
59- constructXmlAndExecuteTestCaseAtRuntime (test , getTestMethods (setOfMethods ), suiteName , categoryName , deviceCount );
60- }else {
58+ } else if (test != null && !test .isEmpty ()) {
59+ constructXmlAndExecuteTestCaseAtRuntime (test , getTestMethods (setOfMethods ), suiteName , categoryName , deviceCount );
60+ } else {
6161 constructXmlSuiteForMethodLevelDistributionRunner (test ,
6262 getTestMethods (setOfMethods ), suiteName , categoryName , deviceCount );
6363 }
@@ -174,15 +174,15 @@ public XmlSuite constructXmlAndExecuteTestCaseAtRuntime(List<String> testCases,
174174 XmlClass xmlClass = new XmlClass (mapElement .getKey ());
175175 List <XmlInclude > includedMethodsList = new ArrayList <>();
176176 for (Method methodName : mapElement .getValue ()) {
177- for (String testCase : testCases ){
177+ for (String testCase : testCases ) {
178178 if (methodName .getName ().equalsIgnoreCase (testCase )) {
179179 XmlInclude includedTestMethod = new XmlInclude (testCase );
180180 includedMethodsList .add (includedTestMethod );
181181 break ;
182182 }
183183 }
184184 }
185- if (!includedMethodsList .isEmpty ()) {
185+ if (!includedMethodsList .isEmpty ()) {
186186 xmlClass .setIncludedMethods (includedMethodsList );
187187 classes .add (xmlClass );
188188 }
@@ -254,7 +254,7 @@ private List<XmlClass> writeXmlClass(List<String> testCases, Map<String,
254254
255255 private void writeTestNGFile (XmlSuite suite ) {
256256 try (FileWriter writer = new FileWriter (new File (
257- getProperty ("user.dir" ) + PARALLEL_XML_LOCATION ))) {
257+ getProperty ("user.dir" ) + PARALLEL_XML_LOCATION ))) {
258258 writer .write (suite .toXml ());
259259 writer .flush ();
260260 } catch (IOException e ) {
@@ -273,9 +273,9 @@ public Map<String, List<Method>> getTestMethods(Set<Method> methods) {
273273 Map <String , List <Method >> listOfMethods = new HashMap <>();
274274 methods .forEach (method -> {
275275 List <Method > methodsList = listOfMethods .computeIfAbsent (
276- method .getDeclaringClass ().getPackage ().getName ()
277- + "." + method .getDeclaringClass ()
278- .getSimpleName (), k -> new ArrayList <>());
276+ method .getDeclaringClass ().getPackage ().getName ()
277+ + "." + method .getDeclaringClass ()
278+ .getSimpleName (), k -> new ArrayList <>());
279279 methodsList .add (method );
280280 });
281281 return listOfMethods ;
0 commit comments