OpenJDK / amber / amber
changeset 56982:a59d56df3851 amber-demo-II
Automatic merge with records-and-sealed
author | mcimadamore |
---|---|
date | Fri, 09 Aug 2019 23:35:44 +0000 |
parents | ffda173c90ca c2650bf6e849 |
children | fa802f216fb2 |
files | |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java Thu Aug 08 23:40:43 2019 +0000 +++ b/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java Fri Aug 09 23:35:44 2019 +0000 @@ -82,6 +82,23 @@ } @Test + public void testEmptyRecord(Path base) throws IOException { + Path src = base.resolve("src"); + tb.writeJavaFiles(src, + "package p; public record R() { }"); + + javadoc("-d", base.resolve("out").toString(), + "-sourcepath", src.toString(), + "p"); + checkExit(Exit.OK); + + checkOutput("p/R.html", true, + "<h1 title=\"Record R\" class=\"title\">Record R</h1>", + "public record <span class=\"typeNameLabel\">R</span>", + "<code><span class=\"memberNameLink\"><a href=\"#%3Cinit%3E()\">R</a></span>()</code>"); + } + + @Test public void testAtParam(Path base) throws IOException { Path src = base.resolve("src"); tb.writeJavaFiles(src,