CloneSet13


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40410.997method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14053
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/filter/plugins/AllTests.java
24047
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/folder/AllTests.java
34250
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/folder/command/AllTests.java
44351
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/gui/composer/command/AllTests.java
Next
Last
Clone Instance
1
Line Count
40
Source Line
53
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/filter/plugins/AllTests.java

/**
 * Add all testcases to the passed testsuite, using a the folder type as
 * created in the factory.
 * 
 * @param suite
 *            test suite
 * @param factory
 *            factory which creates the folder instances
 */
private static void setup(TestSuite suite, MailboxTstFactory factory) {
  try {
    for (int j = 0; j < list.length; j++) {
      Class clazz = Class.forName("org.columba.mail.filter.plugins." + list[j]);
      Method[] methods = clazz.getDeclaredMethods();
      for (int i = 0; i < methods.length; i++) {
        if (methods[i].getName().startsWith("test")) {
          suite.addTest((TestCase) clazz.getConstructor(new Class[] {
                                                                      MailboxTstFactory.class ,
                                                                      String.class
                                                                    } ).newInstance(new Object[] {
                                                                                                   factory,
                                                                                                   methods[i].getName()
                                                                                                 } ));
        }
      }
    }
  }
  catch (SecurityException
         e) {
    e.printStackTrace();
  }
  catch (IllegalArgumentException
         e) {
    e.printStackTrace();
  }
  catch (ClassNotFoundException
         e) {
    e.printStackTrace();
  }
  catch (InstantiationException
         e) {
    e.printStackTrace();
  }
  catch (IllegalAccessException
         e) {
    e.printStackTrace();
  }
  catch (InvocationTargetException
         e) {
    e.printStackTrace();
  }
  catch (NoSuchMethodException
         e) {
    e.printStackTrace();
  }
}


Next
Previous
Clone Instance
2
Line Count
40
Source Line
47
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/folder/AllTests.java

/**
 * Add all testcases to the passed testsuite, using a the folder type as
 * created in the factory.
 * 
 * @param suite
 *            test suite
 * @param factory
 *            factory which creates the folder instances
 */
private static void setup(TestSuite suite, MailboxTstFactory factory) {
  try {
    for (int j = 0; j < list.length; j++) {
      Class clazz = Class.forName("org.columba.mail.folder." + list[j]);
      Method[] methods = clazz.getDeclaredMethods();
      for (int i = 0; i < methods.length; i++) {
        if (methods[i].getName().startsWith("test")) {
          suite.addTest((TestCase) clazz.getConstructor(new Class[] {
                                                                      MailboxTstFactory.class ,
                                                                      String.class
                                                                    } ).newInstance(new Object[] {
                                                                                                   factory,
                                                                                                   methods[i].getName()
                                                                                                 } ));
        }
      }
    }
  }
  catch (SecurityException
         e) {
    e.printStackTrace();
  }
  catch (IllegalArgumentException
         e) {
    e.printStackTrace();
  }
  catch (ClassNotFoundException
         e) {
    e.printStackTrace();
  }
  catch (InstantiationException
         e) {
    e.printStackTrace();
  }
  catch (IllegalAccessException
         e) {
    e.printStackTrace();
  }
  catch (InvocationTargetException
         e) {
    e.printStackTrace();
  }
  catch (NoSuchMethodException
         e) {
    e.printStackTrace();
  }
}


Next
Previous
Clone Instance
3
Line Count
42
Source Line
50
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/folder/command/AllTests.java

/**
 * Add all testcases to the passed testsuite, using a the folder type as
 * created in the factory.
 * 
 * @param suite
 *            test suite
 * @param factory
 *            factory which creates the folder instances
 */
private static void setup(TestSuite suite, MailboxTstFactory factory) {
  try {
    for (int j = 0; j < list.length; j++) {
      Class clazz = Class.forName("org.columba.mail.folder.command." + list[j]);
      Method[] methods = clazz.getDeclaredMethods();
      for (int i = 0; i < methods.length; i++) {
        if (methods[i].getName().startsWith("test")) {
          suite.addTest((TestCase) clazz.getConstructor(new Class[] {
                                                                      MailboxTstFactory.class ,
                                                                      String.class
                                                                    } ).newInstance(new Object[] {
                                                                                                   factory,
                                                                                                   methods[i].getName()
                                                                                                 } ));
        }
      }
    }
  }
  catch (SecurityException
         e) {
    e.printStackTrace();
  }
  catch (IllegalArgumentException
         e) {
    e.printStackTrace();
  }
  catch (ClassNotFoundException
         e) {
    e.printStackTrace();
  }
  catch (InstantiationException
         e) {
    e.printStackTrace();
  }
  catch (IllegalAccessException
         e) {
    e.printStackTrace();
  }
  catch (InvocationTargetException
         e) {
    e.printStackTrace();
  }
  catch (NoSuchMethodException
         e) {
    e.printStackTrace();
  }
}


First
Previous
Clone Instance
4
Line Count
43
Source Line
51
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/test/java/org/columba/mail/gui/composer/command/AllTests.java

/**
 * Add all testcases to the passed testsuite, using a the folder type as
 * created in the factory.
 * 
 * @param suite
 *            test suite
 * @param factory
 *            factory which creates the folder instances
 */
private static void setup(TestSuite suite, MailboxTstFactory factory) {
  try {
    for (int j = 0; j < list.length; j++) {
      Class clazz = Class.forName("org.columba.mail.gui.composer.command." + list[j]);
      Method[] methods = clazz.getDeclaredMethods();
      for (int i = 0; i < methods.length; i++) {
        if (methods[i].getName().startsWith("test")) {
          suite.addTest((TestCase) clazz.getConstructor(new Class[] {
                                                                      MailboxTstFactory.class ,
                                                                      String.class
                                                                    } ).newInstance(new Object[] {
                                                                                                   factory,
                                                                                                   methods[i].getName()
                                                                                                 } ));
        }
      }
    }
  }
  catch (SecurityException
         e) {
    e.printStackTrace();
  }
  catch (IllegalArgumentException
         e) {
    e.printStackTrace();
  }
  catch (ClassNotFoundException
         e) {
    e.printStackTrace();
  }
  catch (InstantiationException
         e) {
    e.printStackTrace();
  }
  catch (IllegalAccessException
         e) {
    e.printStackTrace();
  }
  catch (InvocationTargetException
         e) {
    e.printStackTrace();
  }
  catch (NoSuchMethodException
         e) {
    e.printStackTrace();
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Add all testcases to the passed testsuite, using a the folder type as
     * created in the factory.
     * 
     * @param suite
     *            test suite
     * @param factory
     *            factory which creates the folder instances
     */
/**
         * Add all testcases to the passed testsuite, using a the folder type as
         * created in the factory.
         * 
         * @param suite
         *            test suite
         * @param factory
         *            factory which creates the folder instances
         */
private static void setup(TestSuite suite, MailboxTstFactory factory) {
  try {
    for (int j = 0; j < list.length; j++) {
      Class clazz = Class.forName( [[#variablef2fe180]] + list[j]);
      Method[] methods = clazz.getDeclaredMethods();
      for (int i = 0; i < methods.length; i++) {
        if (methods[i].getName().startsWith("test")) {
          suite.addTest((TestCase) clazz.getConstructor(new Class[] {
                                                                      MailboxTstFactory.class ,
                                                                      String.class
                                                                    } ).newInstance(new Object[] {
                                                                                                   factory,
                                                                                                   methods[i].getName()
                                                                                                 } ));
        }
      }
    }
  }
  catch (SecurityException
         e) {
    e.printStackTrace();
  }
  catch (IllegalArgumentException
         e) {
    e.printStackTrace();
  }
  catch (ClassNotFoundException
         e) {
    e.printStackTrace();
  }
  catch (InstantiationException
         e) {
    e.printStackTrace();
  }
  catch (IllegalAccessException
         e) {
    e.printStackTrace();
  }
  catch (InvocationTargetException
         e) {
    e.printStackTrace();
  }
  catch (NoSuchMethodException
         e) {
    e.printStackTrace();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f2fe180]]
"org.columba.mail.filter.plugins." 
12[[#f2fe180]]
"org.columba.mail.folder." 
13[[#f2fe180]]
"org.columba.mail.folder.command." 
14[[#f2fe180]]
"org.columba.mail.gui.composer.command."