Codota Logo
Type
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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/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/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/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/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

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Table (org.hibernate.mapping)
    A relational table
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