Tabnine Logo
Type
Code IndexAdd Tabnine to your IDE (free)

How to use
Type
in
de.smartics.testdoc.core.doc

Best Java code snippets using de.smartics.testdoc.core.doc.Type (Showing top 16 results out of 315)

origin: de.smartics.testdoc/testdoc-report

/**
 * {@inheritDoc}
 *
 * @see de.smartics.testdoc.report.index.ExportIndex#addToIndex(de.smartics.testdoc.core.doc.UnitTestDoc)
 */
@Override
public void addToIndex(final UnitTestDoc testDoc)
{
 final Type type = testDoc.getUutType();
 final String packageName = type.getPackageName();
 final Map<String, UnitTestDoc> nameIndex = getNameIndex(packageName);
 final String typeName = type.getTypeName();
 nameIndex.put(typeName, testDoc);
}
origin: de.smartics.testdoc/testdoc-report

private String createFileName(final Type testCaseType)
{
 final String type = testCaseType.toString();
 return "TEST-" + type + ".xml";
}
origin: de.smartics.testdoc/testdoc-report

/**
 * Convenience constructor.
 *
 * @param resultType the result type of the test case.
 * @param time the reported duration of the test case execution.
 * @param testCaseType
 * @param testMethodName the name of the test method.
 */
public JUnitTestMethodDoc(final ResultType resultType, final String time,
  final String testCaseType, final String testMethodName)
{
 this(resultType, time, new Type(testCaseType), testMethodName);
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

@Override
protected void renderTestDocTypeStart(final UnitTestDoc testDoc)
{
 final Type type = testDoc.getUutType();
 final String id = type.toString();
 final String name = type.getTypeName();
 sink.section3();
 helper.renderAnchor(id);
 sink.sectionTitle3();
 sink.text(name + " (" + type.getPackageName() + ')');
 sink.sectionTitle3_();
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

private void renderSections(final Section<UnitTestDoc> section,
  final int level)
{
 final String name = section.getName();
 final String sectionLabel = messages.getLabel(name);
 helper.renderSectionStart(level, sectionLabel);
 if (!section.containsSubSections())
 {
  helper.renderIndexTableStart();
  int counter = 1;
  for (final UnitTestDoc testDoc : section.getItems())
  {
   final Type type = testDoc.getUutType();
   final String label = type.getTypeName();
   final String id = type.toString();
   helper.renderIndexRow(counter, label, id);
   counter++;
  }
  helper.renderIndexTableEnd();
 }
 else
 {
  final int nextLevel = level + 1;
  for (final Section<UnitTestDoc> subSection : section.getSubSections())
  {
   renderSections(subSection, nextLevel);
  }
 }
 helper.renderSectionEnd(level);
}
origin: de.smartics.testdoc/testdoc-report

/**
 * {@inheritDoc}
 *
 * @see de.smartics.testdoc.report.index.ExportIndex#addToIndex(de.smartics.testdoc.core.doc.UnitTestDoc)
 */
@Override
public void addToIndex(final UnitTestDoc testDoc)
{
 final Type type = testDoc.getUutType();
 final String typeName = type.getTypeName();
 index.put(typeName, testDoc);
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

@Override
protected void renderTestDocTypeStart(final UnitTestDoc testDoc)
{
 final Type type = testDoc.getUutType();
 final String id = type.toString();
 final String name = type.getTypeName();
 sink.section3();
 helper.renderAnchor(id);
 sink.sectionTitle3();
 sink.text(name + " (" + type.getPackageName() + ')');
 sink.sectionTitle3_();
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

private void renderSections(final Section<UnitTestDoc> section,
  final int level)
{
 final String name = section.getName();
 final String sectionLabel = messages.getLabel(name);
 helper.renderSectionStart(level, sectionLabel);
 if (!section.containsSubSections())
 {
  helper.renderIndexTableStart();
  int counter = 1;
  for (final UnitTestDoc testDoc : section.getItems())
  {
   final Type type = testDoc.getUutType();
   final String label = type.getTypeName();
   final String id = type.toString();
   helper.renderIndexRow(counter, label, id);
   counter++;
  }
  helper.renderIndexTableEnd();
 }
 else
 {
  final int nextLevel = level + 1;
  for (final Section<UnitTestDoc> subSection : section.getSubSections())
  {
   renderSections(subSection, nextLevel);
  }
 }
 helper.renderSectionEnd(level);
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

@Override
protected void renderTestCase(final ScenarioTestDoc scenario)
{
 if (informationFilter.isShowTestCase())
 {
  sink.tableCell();
  final Type testCase = scenario.getTestCaseType();
  sink.text(testCase.getTypeName());
  final ExternalReportReferences reportRefs = testDocHelper.getReports();
  final List<ExternalReport> reports = reportRefs.getTestCaseReports();
  if (!reports.isEmpty())
  {
   sink.text(": ");
   final ScenarioLinkRenderer linkRenderer =
     new ScenarioLinkRenderer(sink, messages, scenario);
   for (final ExternalReport report : reports)
   {
    linkRenderer.renderTestMethodLink(report);
   }
  }
  sink.tableCell_();
 }
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

private void writeType(final Type type) throws XMLStreamException
{
 final String packageName = type.getPackageName();
 if (StringUtils.isNotBlank(packageName))
 {
  writeElement("package", packageName);
 }
 writeElement("type", type.getTypeName());
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

@Override
protected void renderTestCase(final ScenarioTestDoc scenario)
{
 if (informationFilter.isShowTestCase())
 {
  sink.tableCell();
  final Type testCase = scenario.getTestCaseType();
  sink.text(testCase.getTypeName());
  final ExternalReportReferences reportRefs = testDocHelper.getReports();
  final List<ExternalReport> reports = reportRefs.getTestCaseReports();
  if (!reports.isEmpty())
  {
   sink.text(": ");
   final ScenarioLinkRenderer linkRenderer =
     new ScenarioLinkRenderer(sink, messages, scenario);
   for (final ExternalReport report : reports)
   {
    linkRenderer.renderTestMethodLink(report);
   }
  }
  sink.tableCell_();
 }
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

private void writeType(final Type type) throws XMLStreamException
{
 final String packageName = type.getPackageName();
 if (StringUtils.isNotBlank(packageName))
 {
  writeElement("package", packageName);
 }
 writeElement("type", type.getTypeName());
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

protected void renderReports(final Type type,
  final List<ExternalReport> reports, final TestMethodDoc testMethod)
 throws XMLStreamException
{
 if (!reports.isEmpty())
 {
  xmlWriter.writeStartElement(TESTDOC_NS, "reports");
  for (final ExternalReport report : reports)
  {
   xmlWriter.writeStartElement(TESTDOC_NS, "report");
   final String messageKey = report.getLabelKey();
   final String label = messages.getLabel(messageKey);
   writeElement("name", label);
   final String link =
     report.constructLink(type.getPackageName(), type.getTypeName(),
       testMethod);
   writeElement("link", link);
   xmlWriter.writeEndElement();
  }
  xmlWriter.writeEndElement();
 }
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

protected void renderReports(final Type type,
  final List<ExternalReport> reports, final TestMethodDoc testMethod)
 throws XMLStreamException
{
 if (!reports.isEmpty())
 {
  xmlWriter.writeStartElement(TESTDOC_NS, "reports");
  for (final ExternalReport report : reports)
  {
   xmlWriter.writeStartElement(TESTDOC_NS, "report");
   final String messageKey = report.getLabelKey();
   final String label = messages.getLabel(messageKey);
   writeElement("name", label);
   final String link =
     report.constructLink(type.getPackageName(), type.getTypeName(),
       testMethod);
   writeElement("link", link);
   xmlWriter.writeEndElement();
  }
  xmlWriter.writeEndElement();
 }
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

void renderTestMethodLink(final ExternalReport report)
{
 final String messageKey = report.getLabelKey();
 final Type type = getType();
 final String link =
   report.constructLink(type.getPackageName(), type.getTypeName(),
     getTestMethod());
 if (link != null)
 {
  sink.link(link);
  final String label = messages.getLabel(messageKey);
  sink.text(label);
  sink.link_();
 }
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

void renderTestMethodLink(final ExternalReport report)
{
 final String messageKey = report.getLabelKey();
 final Type type = getType();
 final String link =
   report.constructLink(type.getPackageName(), type.getTypeName(),
     getTestMethod());
 if (link != null)
 {
  sink.link(link);
  final String label = messages.getLabel(messageKey);
  sink.text(label);
  sink.link_();
 }
}
de.smartics.testdoc.core.docType

Most used methods

  • getPackageName
  • getTypeName
  • toString
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top PhpStorm plugins
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