@Test public void testGetContreteXml() { assertEquals( "<functions>2</functions><classes>0</classes>", comAdobePackage.getContreteXml() ); assertEquals( "<functions>2</functions><classes>0</classes>", emptyPackage.getContreteXml() ); }
public String getContreteXml() { return new StringBuffer().append( MessageFormat.format( "<functions>{0}</functions>" + "<classes>{1}</classes>", String.valueOf( functions ), String.valueOf( classes ) ) ).toString(); }
PackageMetrics extends AbstractPackagedMetrics { public String getContreteXml() { return new StringBuffer().append( MessageFormat.format( "<functions>{0}</functions>" + "<classes>{1}</classes>", String.valueOf( functions ), String.valueOf( classes ) ) ).toString(); } }
PackageMetrics extends AbstractPackagedMetrics { public String getContreteXml() { return new StringBuffer().append( MessageFormat.format( "<functions>{0}</functions>" + "<classes>{1}</classes>", String.valueOf( functions ), String.valueOf( classes ) ) ).toString(); } private  PackageMetrics( final int nonCommentStatements,
                           final int functionsToBeSet,
                           final int classesToBeSet,
                           final String packageName,
                           final int asDocs,
                           final int multiLineComments,
                           final int importsToBeSet ); }
PackageMetrics extends AbstractPackagedMetrics { public String getContreteXml() { return new StringBuffer().append( MessageFormat.format( "<functions>{0}</functions>" + "<classes>{1}</classes>", String.valueOf( functions ), String.valueOf( classes ) ) ).toString(); } private  PackageMetrics( final int nonCommentStatements,
                           final int functionsToBeSet,
                           final int classesToBeSet,
                           final String packageName,
                           final int asDocs,
                           final int multiLineComments,
                           final int importsToBeSet ); static PackageMetrics create( final Collection< File > classesInPackage,
                                        final String packageFullName,
                                        final int functionsInPackage,
                                        final int ncssInPackage,
                                        final int asDocsInPackage,
                                        final int multipleLineCommentInPackage,
                                        final int imports ); int getClasses(); String getContreteXml(); @Override String getFullName(); int getFunctions(); @Override String getMetricsName(); }
PackageMetrics extends AbstractPackagedMetrics { public String getContreteXml() { return new StringBuffer().append( MessageFormat.format( "<functions>{0}</functions>" + "<classes>{1}</classes>", String.valueOf( functions ), String.valueOf( classes ) ) ).toString(); } private  PackageMetrics( final int nonCommentStatements,
                           final int functionsToBeSet,
                           final int classesToBeSet,
                           final String packageName,
                           final int asDocs,
                           final int multiLineComments,
                           final int importsToBeSet ); static PackageMetrics create( final Collection< File > classesInPackage,
                                        final String packageFullName,
                                        final int functionsInPackage,
                                        final int ncssInPackage,
                                        final int asDocsInPackage,
                                        final int multipleLineCommentInPackage,
                                        final int imports ); int getClasses(); String getContreteXml(); @Override String getFullName(); int getFunctions(); @Override String getMetricsName();  }