Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wagon: Deploying sitegen to repository
  • Loading branch information
FuseSource CI committed Dec 10, 2013
1 parent c3b87af commit e400783
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 0 deletions.
32 changes: 32 additions & 0 deletions maven/index.html
Expand Up @@ -89,6 +89,10 @@ <h2 id = "Maven_Goals">Maven Goals</h2>
<td>camel-blueprint</td>
<td>The same as the camel goal but needed when using OSGi Blueprint Camel applications.</td>
</tr>
<tr>
<td>test</td>
<td>This goal run the unit tests of the Maven project. Can be used together with the <a href"http://hawt.io/plugins/junit.html">JUnit</a> plugin to run unit tests from within hawtio console as well. This plugin is currently <strong>Work in progress</strong>, and subject for changes.</td>
</tr>
</table>

<h3 id = "Common_Maven_Goal_configuration">Common Maven Goal configuration</h3>
Expand Down Expand Up @@ -233,6 +237,34 @@ <h3 id = "camel-blueprint_Maven_Goal_configuration">camel-blueprint Maven Goal c
</tr>
</table>

<h3 id = "test_Maven_Goal_configuration">test Maven Goal configuration</h3>

<p>The test <strong>hawtio</strong> Maven Plugins provides the following common options:</p>

<table class="table">
<tr>
<th>Option</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td>className</td>
<td></td>
<td>Optional to select a specific unit test class to start testing (must specific class name as fully qualified classname)</td>
</tr>
<tr>
<td>testName</td>
<td></td>
<td>Optional to select a specific test method(s) to filter and use for testing. You can use * as wildcard to match multiple test methods.</td>
</tr>
</table>

<p>If no <strong>className</strong> has been specified then <strong>hawtio</strong> is started up included the projects test classpath, and the <a href="hawt.io/plugins/junit">junit plugin</a> can be used to select tests to run from within <strong>hawtio</strong> console itself.</p>

<p>If a <strong>className</strong> has been specified then unit testing of the selected class happens when <strong>hawtio</strong> has been started, <strong>but</strong> the unit test will not tear down until the user press enter in the shell. This is on purpose allowing using <strong>hawtio</strong> to inspect the state of the JVM during and after testing. For example to look at the Camel plugin to see route diagrams and profiles with metrics from the completed unit tests. </p>

<p>Pressing enter in the shell runs the tear down of the unit tests, which for example could unregister Camel from JMX and therefore remove the CamelContext used during testing. When using the <a href="hawt.io/plugins/junit">junit plugin</a> to run unit tests, then these tests will tear down immediately when they complete, and therefore remove any CamelContexts during testing. This may change in the future, allows to keep the CamelContexts alive after testing, giving end users time to inspect the data; and then tear down by pressing a button.</p>

<h2 id = "Configuring_hawtio_Maven_Plugin_in_pom_xml">Configuring hawtio Maven Plugin in pom.xml</h2>

<p>In the Maven pom.xml file, the <strong>hawtio</strong> plugin is configured by adding the following in the &lt;build&gt;&lt;plugin&gt;section:</p>
Expand Down
5 changes: 5 additions & 0 deletions plugins/index.html
Expand Up @@ -165,6 +165,11 @@ <h2 id = "Included_Plugins">Included Plugins</h2>
<td>Provides the core <a href="http://www.oracle.com/technetwork/java/javase/tech/javamanagement-140525.html">JMX</a> support for interacting with MBeans, viewing real time attributes, charting and invoking operations.</td>
<td><a href="https://github.com/hawtio/hawtio/tree/master/hawtio-web/src/main/webapp/app/jmx">jmx</a></td>
</tr>
<tr>
<td><a href="http://hawt.io/plugins/junit/">junit</a></td>
<td>Adds support for running JUnit tests from wihtin hawtio.</td>
<td><a href="https://github.com/hawtio/hawtio/tree/master/hawtio-web/src/main/webapp/app/junit">junit</a></td>
</tr>
<tr>
<td><a href="http://hawt.io/plugins/jvm/">jvm</a></td>
<td>The jvm plugin allows you to connect to local or remote JVMs, and as well install the Jolokia JVM agent into the JVMs.</td>
Expand Down
Binary file added plugins/junit/app/junit/doc/img/junit-testing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugins/junit/app/junit/doc/img/junit-tests.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugins/junit/app/junit/doc/img/junit-tree.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
215 changes: 215 additions & 0 deletions plugins/junit/index.html
@@ -0,0 +1,215 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>hawtio JUnit plugin</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="A HTML5 web console for managing Java services with support for JMX, OSGi, Apache ActiveMQ, Apache Camel and Fuse Fabric. Open source, modular and extensible" name="description" />
<!--
<link href="/blog/atom.xml" rel="alternate" title="hawtio blog Atom feed" type="application/atom+xml" />
-->
<link href="/stylesheets/screen.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/r29/html5.js"></script>
<![endif]-->
<link href="/favicon.ico" rel="shortcut icon" />
</head>
<body class="home">
<header class="navbar navbar-fixed-top" id="banner" role="banner">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="g-plusone-slot">
<div class="g-plusone" data-annotation="none"></div>
</div>
<a class="brand" href="/">
<span class="name">
<img src="/images/logo.png" />
hawtio
</span>
</a>
<nav class="nav-collapse" role="navigation">
<ul class="nav">
<li><a href="/faq/index.html">FAQ</a></li>
<li><a href="/getstarted/index.html">Getting Started</a></li>
<li><a href="/community/index.html">Community</a></li>
<li><a href="/plugins/index.html">Plugins</a></li>
<li><a href="/developers/index.html">Developers</a></li>
<li><a href="https://github.com/hawtio/hawtio">github</a></li>
<!--
<li><a href="/blog/">Blog</a></li>
-->
</ul>
</nav>
</div>
</div>
</header>
<div id="main">
<p><div id="content-header">
<div class="container"></p>

<h3 id = "JUnit">JUnit</h3>

<p>The <a href="#/junit/tests/">JUnit</a> plugin in <a href="http://hawt.io" title="hawtio">hawtio</a> gives a raw view of the underlying JMX metric data, allowing access to the entire JMX domain tree of MBeans.</p>

<h5 id = "JUnit_Tree">JUnit Tree</h5>

<p>The topmost level of the JUnit tree view lists all the JUnit @Test classed currently within the running JVM.</p>

<p><img src="app/junit/doc/img/junit-tree.png" alt="JUnit Tree" title="JUnit Tree"/></p>

<p>Click the <i class='icon-chevron-right'></i> icon to expand a tree item and further navigate into Java packages.</p>

<h5 id = "Testing">Testing</h5>

<p>On the main view area is a table that lists all the unit test classes from the selected Java package in the JUnit Tree (will list all test classes by default).</p>

<p><img src="app/junit/doc/img/junit-tests.png" alt="JUnit Tests" title="JUnit Tests"/></p>

<p>You can select any number of unit test classes to run as unit tests.</p>

<p>During testing there is a test summary which reports the progress.</p>

<p><img src="app/junit/doc/img/junit-testing.png" alt="JUnit Testing" title="JUnit Testing"/></p>

<p>.. and when the tests finishes the failed tests is listed, which can be expanded, to see any stacktrace with the failure.</p>

<h5 id = "Other_Functionality">Other Functionality</h5>

<p>The <a href="#/junit/">JUnit</a> can be used together with the <a href="http://hawt.io/maven/">Test Maven Plugin</a> which can be used to startup
the hawtio console of a given Maven project, with unit test classes included in the classpath, allowing the <a href="#/junit/">JUnit</a>
to be used to start the tests, while using the rest of the functionality of hawtio to inspect live data while the test runs.</p>

<p></div>
</div></p>
</div>
<footer>
<div class="container">
<div class="project">
<img src="/images/footer-logo.png" />
<p class="bottom">
&#169;
Copyright 2012-2013 Red Hat, Inc.
<br />
<i class="icon-fire"></i>
Mixed with <a href="http://twitter.github.com/bootstrap">Bootstrap</a>. Baked by <a href="http://scalate.fusesource.org">Scalate</a>.
<br />
<i class="icon-share-alt"></i>
Website and docs licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
<br />
Code released under <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, v2.0</a>.
</p>
</div>
<div class="footer-nav">
<h4>Learn</h4>
<ul>
<li>
<a href="/index.html">Get Started</a>
</li>
<li>
<a href="articles/index.html">Articles and Demos</a>
</li>
<li>
<a href="faq/index.html">FAQ</a>
</li>
<li>
<a href="/developers/index.html">Developers</a>
</li>
<li>
<a href="/building/index.html">Building</a>
</li>
</ul>
</div>
<div class="footer-nav">
<h4>Get Involved</h4>
<ul>
<!--
<li>
<a href="http://community.jboss.org/en/hawtio?view=discussions">Forums</a>
</li>
-->
<li>
<a href="/contributing/index.html">Contributing</a>
</li>
<li>
<a href="/community/index.html">Community</a>
</li>
<li>
<a href="https://github.com/hawtio/hawtio/issues?state=open">Issue Tracker</a>
</li>
<li>
<a href="https://github.com/hawtio/hawtio">Source Code</a>
</li>
<!--
<li>
<a href="/community/contributors">Contributors</a>
</li>
-->
</ul>
</div>
<div class="sponser">
<div class="follow-us">
<h4>Stay Informed</h4>
<ul>
<!--
<li>
<a href="https://plus.google.com/100660127586085393031"><img alt="Google+" src="/images/social/googleplus-16.png" title="Follow hawtio on Google+" /></a>
</li>
-->
<li>
<a href="https://twitter.com/#!/search/%23hawtio"><img alt="Twitter" src="/images/social/twitter-16.png" title="Browse the #hawtio hashtag on Twitter" /></a>
</li>
<!--
<li>
<a href="http://www.linkedin.com/groups?gid=3120340"><img alt="LinkedIn" src="/images/social/linkedin-16.png" title="Join the hawtio group on LinkedIn" /></a>
</li>
<li>
<a href="http://vimeo.com/channels/hawtio"><img alt="Vimeo" src="/images/social/vimeo-16.png" title="Follow the hawtio channel on Vimeo" /></a>
</li>
-->
</ul>
</div>
<p>This website is open source! If you want to improve it, <a href="http://github.com/hawtio/hawtio">fork the project</a>, hack on it, then send a pull request. You can also view the <a href="http://www.seethestats.com/site/hawtio">visitor stats</a>.</p>
<p class="image"><a href="http://jboss.org"><img src="/images/jboss_redhat_branding.png" class="branding" title="Red Hat, Inc." alt="Red Hat, Inc." /></a></p>
<p>hawtio is a <a href="http://jboss.org">JBoss Community</a> project and development is sponsored by Red Hat, Inc.</p>
<p class="bottom"><a href="http://www.redhat.com/legal/legal_statement.html">Terms of Use</a> | <a href="http://www.redhat.com/legal/privacy_statement.html">Privacy Policy</a></p>
</div>
<a class="visible-desktop" href="#" id="toTop">Top</a>
</div>
</footer>
<script>
$(function() {
$('html').addClass('ready');
prettify();
activateFooterGravity();
activateTooltips();
activateToTopControl();
});
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.2/bootstrap.min.js"></script>
<script src="/javascripts/prettify.js"></script>
<script src="/javascripts/site.js"></script>
<script>
(function() {
var po = document.createElement('script'); po.async = true; po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36899203-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>

0 comments on commit e400783

Please sign in to comment.