Codota Logo
IndexProvider
Code IndexAdd Codota to your IDE (free)

How to use
IndexProvider
in
de.smartics.testdoc.report.export.doc

Best Java code snippets using de.smartics.testdoc.report.export.doc.IndexProvider (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: de.smartics.testdoc/testdoc-report

/**
 * Creates the helper that essentially encapsulates the index of test
 * documentation.
 *
 * @param config the configuration to be used by the helper.
 * @return the created helper instance.
 */
public TestDocHelper createHelper(final ReportConfig config)
{
 final UnitTestDocIndex index = readIndex();
 return new TestDocHelper(index, config);
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

/**
 * {@inheritDoc}
 */
@Override
protected void executeReport(final Locale locale) throws MavenReportException
{
 if (canGenerateReport())
 {
  super.executeReport(locale);
  final IndexProvider indexChecker = new IndexProvider(serOutputDirectory);
  final ReportConfig reportConfig = createReportConfig();
  testDocHelper = indexChecker.createHelper(reportConfig);
  if (testDocHelper.isIndexProvided())
  {
   exportIndex(locale);
  }
  else
  {
   getLog().info(
     "No test doc information found, no report will be generated.");
  }
 }
 else
 {
  getLog().debug("Skipping testdoc report.");
 }
}
origin: de.smartics.testdoc/testdoc-report

private UnitTestDocIndex readIndex()
{
 final UnitTestDocIndex index = new UnitTestDocIndex(); // GlobalUnitTestDocIndex.getIndex();
 if (isJmxBeanRegistered())
 {
  return getIndexIndexFromJmxBean();
 }
 else if (isSerializedIndexProvided())
 {
  final Collection<File> serFiles = fetchSerFiles(serializedRootDir);
  final PersistenceUtils persist = new PersistenceUtils();
  for (final File serFile : serFiles)
  {
   final UnitTestDoc testDoc = (UnitTestDoc) persist.deserialize(serFile);
   index.register(testDoc);
  }
 }
 if (index.isEmpty())
 {
  if (log.isInfoEnabled())
  {
   log.info("No index found. Nothing to render to the testdoc report.");
  }
  return null;
 }
 return index;
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

/**
 * {@inheritDoc}
 */
@Override
protected void executeReport(final Locale locale) throws MavenReportException
{
 if (canGenerateReport())
 {
  super.executeReport(locale);
  final IndexProvider indexChecker = new IndexProvider(serOutputDirectory);
  final ReportConfig reportConfig = createReportConfig();
  testDocHelper = indexChecker.createHelper(reportConfig);
  if (testDocHelper.isIndexProvided())
  {
   exportIndex(locale);
  }
  else
  {
   getLog().info(
     "No test doc information found, no report will be generated.");
  }
 }
 else
 {
  getLog().debug("Skipping testdoc report.");
 }
}
origin: de.smartics.testdoc/testdoc-report

private UnitTestDocIndex getIndexIndexFromJmxBean()
{
 final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
 final JmxExportAdapterMBean exportAdapter =
   JMX.newMBeanProxy(server, jmxObjectName, JmxExportAdapterMBean.class);
 final UnitTestDocIndex index = readIndex(exportAdapter);
 return index;
}
de.smartics.testdoc.report.export.docIndexProvider

Javadoc

Checks whether or not the test documentation has been gathered successfully.

This is a simple implementation that checks, whether there is accessible information stored either in the JMX bean or a singleton index of serialized files.

Most used methods

  • <init>
    Default constructor.
  • createHelper
    Creates the helper that essentially encapsulates the index of test documentation.
  • fetchSerFiles
  • getIndexIndexFromJmxBean
  • isJmxBeanRegistered
  • isSerializedIndexProvided
  • readIndex

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now