Exemplo n.º 1
0
  public static void init() {
    classpaths = new HashMap<String, String>();

    JavaKeyword.init();

    //		new Thread()
    //		{
    //			int counter;
    //
    //			public void run()
    //			{
    //				try
    //				{
    //					URL url = new URL("file://" + PROPERTIES.get("arrowide.location") + "/res/bin/");
    //
    //					ClassLoader cLoader = new URLClassLoader(new URL[] { url });
    //
    //					cLoader.loadClass("Start");
    //
    //					System.out.println("after");
    //				}
    //				catch (ClassNotFoundException e)
    //				{
    //					e.printStackTrace();
    //				}
    //				catch (MalformedURLException e)
    //				{
    //					e.printStackTrace();
    //				}
    //			}
    //		}.start();
  }
  @Test
  public void test() {
    assertThat(JavaKeyword.values()).hasSize(51);
    assertThat(JavaKeyword.keywordValues()).hasSize(JavaKeyword.values().length);

    for (JavaKeyword keyword : JavaKeyword.values()) {
      assertThat(keyword.getName()).isEqualTo(keyword.name());
      assertThat(keyword.getValue()).isNotNull();
    }
  }