Skip to content

Commit

Permalink
JUnit tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
autumoswitzerland committed Jul 8, 2024
1 parent 840b13e commit 3607676
Show file tree
Hide file tree
Showing 423 changed files with 8,438 additions and 3,395 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,16 @@
<!-- WHAT IS BEETROOT -->
## What is beetRoot ?

beetRoot is a rapid Java web-development as well as a full & secure client-server framework ready to run, starts approx. 5 times faster than [SpringBoot](https://spring.io/guides/gs/spring-boot)
and you get a set of working dependencies with the initial setup for the current release, a transparent and clear way to configure the framework and its components and the freedom to choose any
web container or simply use the optimized and embedded web container from the start. However, none of this prevents you from customizing the dependencies in the maven-`pom.xml` file itself.
As much as we love [Gradle](https://gradle.org/), for this project we'll stick with [Maven](https://maven.apache.org/) for now. The quick start setup is also effortless and very fast!

If you know [CakePHP](https://cakePHP.org) for web development, you'll like beetRoot. It is based on the same principles and comes with a full CRUD generator generating all views, the model specification
and controllers (handlers in beetRoot's terminology) based on the database model! The client-server framework supports encrypted communication (SSL) as well as HTTP/HTTPS-tunneling, provides a
beetRoot is a rapid Java web-development as well as a full & secure client-server framework ready to run, starts faster than a second
and you get a set of working dependencies with the initial setup for the current release, a transparent and clear way to configure
the framework and its components and the freedom to choose any web container or simply use the optimized and embedded web container
from the start. However, none of this prevents you from customizing the dependencies in the maven-`pom.xml` file itself.
As much as we love [Gradle](https://gradle.org/), for this project we'll stick with [Maven](https://maven.apache.org/) for now.
The quick start setup is also effortless and very fast!

If you know [CakePHP](https://cakePHP.org) for web development, you'll like beetRoot. It is based on the same principles and comes
with a full CRUD generator generating all views, the model specification and controllers (handlers in beetRoot's terminology) based
on the database model! The client-server framework supports encrypted communication (SSL) as well as HTTP/HTTPS-tunneling, provides a
file download and upload interface and it can be extended with own (distributed) modules.

[![autumo beetRoot 2.x - Quickstart](https://raw.githubusercontent.com/autumoswitzerland/autumo-beetroot/master/web/img/autumo-beetroot-screen.png)](https://www.youtube.com/watch?v=ruZrP-7yCDY)
Expand Down
4 changes: 2 additions & 2 deletions bin/beetroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#------------------------------------------------------------------------------
#
# beetRoot Server
# Version: 2.0
# Version: 2.1
#
#------------------------------------------------------------------------------

Expand Down Expand Up @@ -53,6 +53,6 @@ CLASSPATH=${CLASSPATH}:${LIB_CLASSPATH}
java \
-DROOTPATH="${ROOT}" \
-Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2,TLSv1.3 \
-cp "${CLASSPATH}" ch.autumo.beetroot.server.BeetRootServer $* &
-cp "${CLASSPATH}" ch.autumo.beetroot.server.BeetRootServer $*

popd
4 changes: 2 additions & 2 deletions cfg/beetroot.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ db_pw_encoded=no
# [WEB-CONTEXT-PATH] or use
# an absolute path.
#
#db_url=jdbc:h2:./db/h2/db/beetroot;AUTO_SERVER=TRUE;IFEXISTS=TRUE
db_url=jdbc:mariadb://localhost:3306/beetroot
db_url=jdbc:h2:./db/h2/db/beetroot;AUTO_SERVER=TRUE;IFEXISTS=TRUE
#db_url=jdbc:mariadb://localhost:3306/beetroot
#db_url=jdbc:postgresql://localhost:5432/beetroot
#db_url=jdbc:pgsql://localhost:5432/beetroot
#db_url=jdbc:oracle:thin:@localhost:1521/orcl
Expand Down
Binary file modified db/h2/db/beetroot.mv.db
Binary file not shown.
6 changes: 6 additions & 0 deletions db/h2/db/test/beetroot.lock.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#FileLock
#Mon Jul 08 17:19:17 CEST 2024
server=localhost\:50818
hostName=localhost
method=file
id=19092ed82140001ff4241a4994967069296005146fa
Binary file modified db/h2/db/test/beetroot.mv.db
Binary file not shown.
655 changes: 655 additions & 0 deletions db/h2/db/test/beetroot.trace.db

Large diffs are not rendered by default.

321 changes: 203 additions & 118 deletions doc/apidocs/allclasses-index.html

Large diffs are not rendered by default.

55 changes: 36 additions & 19 deletions doc/apidocs/allpackages-index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (21) on Sun Jun 30 08:19:34 CEST 2024 -->
<title>All Packages (autumo-beetroot 2.3.1 API)</title>
<!-- Generated by javadoc (21) on Mon Jul 08 05:59:24 CEST 2024 -->
<title>All Packages (autumo-beetroot 3.0.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-06-30">
<meta name="dc.created" content="2024-07-08">
<meta name="description" content="package index">
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
<link rel="stylesheet" type="text/css" href="autumo.css" title="Style">
Expand All @@ -32,6 +32,7 @@
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html#all-packages">Help</a></li>
</ul>
Expand Down Expand Up @@ -79,14 +80,30 @@ <h1 title="All&amp;nbsp;Packages" class="title">All&nbsp;Packages</h1>
<div class="col-last odd-row-color">
<div class="block">All base handlers for different purposes.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/handler/tasks/package-summary.html">ch.autumo.beetroot.handler.tasks</a></div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/handler/properties/package-summary.html">ch.autumo.beetroot.handler.properties</a></div>
<div class="col-last even-row-color">
<div class="block">Task handlers for demonstration purposes.</div>
<div class="block">Handler an entity for properties (aka settings) generated by PLANT.</div>
</div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/handler/users/package-summary.html">ch.autumo.beetroot.handler.users</a></div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/handler/roles/package-summary.html">ch.autumo.beetroot.handler.roles</a></div>
<div class="col-last odd-row-color">
<div class="block">System handlers.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/handler/system/package-summary.html">ch.autumo.beetroot.handler.system</a></div>
<div class="col-last even-row-color">
<div class="block">User handlers; covers all necessary handlers including password reset, user settings and 2FA.</div>
</div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/handler/tasks/package-summary.html">ch.autumo.beetroot.handler.tasks</a></div>
<div class="col-last odd-row-color">
<div class="block">Task handlers for demonstration purposes.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/handler/users/package-summary.html">ch.autumo.beetroot.handler.users</a></div>
<div class="col-last even-row-color">
<div class="block">User handlers; covers all necessary handlers including password reset, user settings and 2FA.</div>
</div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/handler/usersroles/package-summary.html">ch.autumo.beetroot.handler.usersroles</a></div>
<div class="col-last odd-row-color">
<div class="block">User-Role model only.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/logging/package-summary.html">ch.autumo.beetroot.logging</a></div>
<div class="col-last even-row-color">
<div class="block">Logging component with implementations (default: log4j2 behind SLF4j).<br>
Expand Down Expand Up @@ -140,16 +157,20 @@ <h1 title="All&amp;nbsp;Packages" class="title">All&nbsp;Packages</h1>
<div class="col-last even-row-color">
<div class="block">Dispatcher interfaces for creating your own distributed dispatchers (modules) for the beetRoot client-server framework.</div>
</div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/sms/package-summary.html">ch.autumo.beetroot.sms</a></div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/server/modules/log/package-summary.html">ch.autumo.beetroot.server.modules.log</a></div>
<div class="col-last odd-row-color">
<div class="block">SMS factory, interface and implementations; a TWILIO implementation is currently provided.</div>
<div class="block">Log module/dispatcher with remote and local dispatcher implementations.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/transport/package-summary.html">ch.autumo.beetroot.transport</a></div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/sms/package-summary.html">ch.autumo.beetroot.sms</a></div>
<div class="col-last even-row-color">
<div class="block">Password encoder console tool; see <code>bin/pwencoder.sh</code>.</div>
<div class="block">SMS factory, interface and implementations; a TWILIO implementation is currently provided.</div>
</div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/utils/package-summary.html">ch.autumo.beetroot.utils</a></div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/transport/package-summary.html">ch.autumo.beetroot.transport</a></div>
<div class="col-last odd-row-color">
<div class="block">Password encoder console tool; see <code>bin/pwencoder.sh</code>.</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/utils/package-summary.html">ch.autumo.beetroot.utils</a></div>
<div class="col-last even-row-color">
<div class="block">beetRoot's utilities:

Bean Processor
Expand All @@ -165,17 +186,13 @@ <h1 title="All&amp;nbsp;Packages" class="title">All&nbsp;Packages</h1>
Web tools
</div>
</div>
<div class="col-first even-row-color"><a href="ch/autumo/beetroot/utils/security/package-summary.html">ch.autumo.beetroot.utils.security</a></div>
<div class="col-last even-row-color">
<div class="block">Secure socket components for SSL communication.</div>
</div>
<div class="col-first odd-row-color"><a href="org/nanohttpd/router/package-summary.html">org.nanohttpd.router</a></div>
<div class="col-first odd-row-color"><a href="ch/autumo/beetroot/utils/security/package-summary.html">ch.autumo.beetroot.utils.security</a></div>
<div class="col-last odd-row-color">
<div class="block">Patched NanoHTTPD sources; adjustments for routing with languages and with or without servlet name in the URL.</div>
<div class="block">Secure socket components for SSL communication.</div>
</div>
<div class="col-first even-row-color"><a href="planted/beetroot/handler/properties/package-summary.html">planted.beetroot.handler.properties</a></div>
<div class="col-first even-row-color"><a href="org/nanohttpd/router/package-summary.html">org.nanohttpd.router</a></div>
<div class="col-last even-row-color">
<div class="block">Handler an entity for properties (aka settings) generated by PLANT.</div>
<div class="block">Patched NanoHTTPD sources; adjustments for routing with languages and with or without servlet name in the URL.</div>
</div>
</div>
</main>
Expand Down
7 changes: 4 additions & 3 deletions doc/apidocs/ch/autumo/beetroot/AbstractBeetRootServlet.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (21) on Sun Jun 30 08:19:34 CEST 2024 -->
<title>AbstractBeetRootServlet (autumo-beetroot 2.3.1 API)</title>
<!-- Generated by javadoc (21) on Mon Jul 08 05:59:24 CEST 2024 -->
<title>AbstractBeetRootServlet (autumo-beetroot 3.0.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-06-30">
<meta name="dc.created" content="2024-07-08">
<meta name="description" content="declaration: package: ch.autumo.beetroot, class: AbstractBeetRootServlet">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../autumo.css" title="Style">
Expand All @@ -32,6 +32,7 @@
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/AbstractBeetRootServlet.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html#class">Help</a></li>
</ul>
Expand Down
7 changes: 4 additions & 3 deletions doc/apidocs/ch/autumo/beetroot/BeetRootClientHandler.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (21) on Sun Jun 30 08:19:34 CEST 2024 -->
<title>BeetRootClientHandler (autumo-beetroot 2.3.1 API)</title>
<!-- Generated by javadoc (21) on Mon Jul 08 05:59:24 CEST 2024 -->
<title>BeetRootClientHandler (autumo-beetroot 3.0.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-06-30">
<meta name="dc.created" content="2024-07-08">
<meta name="description" content="declaration: package: ch.autumo.beetroot, class: BeetRootClientHandler">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../autumo.css" title="Style">
Expand All @@ -32,6 +32,7 @@
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/BeetRootClientHandler.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html#class">Help</a></li>
</ul>
Expand Down
Loading

0 comments on commit 3607676

Please sign in to comment.