aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/java/doxygen_alias_runme.java
blob: e21ed6d199e1a3d6ef48f85672db3d76475949cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

import doxygen_alias.*;
import com.sun.javadoc.*;
import java.util.HashMap;

public class doxygen_alias_runme {
  static {
    try {
      System.loadLibrary("doxygen_alias");
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
      System.exit(1);
    }
  }

  public static void main(String argv[])
  {
    CommentParser parser = new CommentParser();
    com.sun.tools.javadoc.Main.execute("doxygen_alias runtime test",
                                       "CommentParser",
                                       new String[]{"-quiet", "doxygen_alias"});

    HashMap<String, String> wantedComments = new HashMap<String, String>();
    wantedComments.put("doxygen_alias.doxygen_alias.make_something()",
      "     A function returning something.<br>\n" +
      " <br>\n" +
      "     @return A new object which may be null.\n" +
      "");

    System.exit(parser.check(wantedComments));
  }
}