Tabnine Logo
IndexProvider
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now