From 870e1d2ad78ada772dc6c2d6601d9b352eae521b Mon Sep 17 00:00:00 2001
From: Leonard Kupper <leonard.kupper@mailbox.tu-dresden.de>
Date: Thu, 18 Jul 2019 02:21:59 +0200
Subject: [PATCH] Cleanup test resource base

---
 src/test/resources/concrete.properties |  45 ++++++++
 src/test/resources/default.properties  |  24 ++++
 src/test/resources/mapping.properties  | 146 +++++++++++++++++++++++++
 3 files changed, 215 insertions(+)
 create mode 100644 src/test/resources/concrete.properties
 create mode 100644 src/test/resources/default.properties
 create mode 100644 src/test/resources/mapping.properties

diff --git a/src/test/resources/concrete.properties b/src/test/resources/concrete.properties
new file mode 100644
index 00000000..ea546d5c
--- /dev/null
+++ b/src/test/resources/concrete.properties
@@ -0,0 +1,45 @@
+# JProperties Printer & Format Configuration
+#
+# Embosser: Index Everest-D V4
+# Test Revision (19-07-18) (DON'T USE FOR PRINTING)
+#
+# Description:
+# This is the main configuration file for use with the braille plot application
+# when embossing with the 'Index Everest-D V4'.
+# The configuration specifies the general printer abilities and defines
+# pre-selectable formats for this embosser.
+#
+# https://gitlab.hrz.tu-chemnitz.de/s9444737--tu-dresden.de/brailleplot/wikis/Software%20Design#configuration-files
+# =============================================================================
+
+### General Printer Properties
+### ==========================
+
+printer.name=Index Everest-D V4
+printer.brailletable=src/test/resources/mapping.properties
+
+# The following values represent the fixed indentation that can be introduced by the embosser itself.
+# If the outputs don't fit on the page you might want to tweak this values. (Check the format too.)
+printer.indent.top=5.0
+printer.indent.left=0
+printer.indent.bottom=5.0
+printer.indent.right=0
+printer.raster.indent.top=0
+printer.raster.indent.left=0
+printer.raster.indent.bottom=0
+printer.raster.indent.right=0
+#https://codes.iccsafe.org/content/ICCA117_12003/chapter-7-communication-elements-and-features#ICCA117.1_2003_Ch07_Sec703
+printer.raster.dotDistance.horizontal=2.5
+printer.raster.dotDistance.vertical=2.5
+printer.raster.cellDistance.horizontal=3.6
+printer.raster.cellDistance.vertical=4.8
+printer.raster.dotDiameter=1.5
+
+### Format Definitions
+### ==================
+
+# A4 Format
+format.A4.page.width=210
+format.A4.page.height=297
+format.A4.margin.top=0
+format.A4.margin.left=0
\ No newline at end of file
diff --git a/src/test/resources/default.properties b/src/test/resources/default.properties
new file mode 100644
index 00000000..160666f8
--- /dev/null
+++ b/src/test/resources/default.properties
@@ -0,0 +1,24 @@
+# JProperties Printer & Format Configuration
+#
+# Embosser: Default
+# Version 1 Rev. 0 (19-06-27)
+#
+# Description:
+# This is the default configuration file for the braille plot application.
+# The configuration specifies the default values of required properties.
+#
+# https://gitlab.hrz.tu-chemnitz.de/s9444737--tu-dresden.de/brailleplot/wikis/Software%20Design#configuration-files
+# =============================================================================
+
+# Default Printer Properties
+printer.floatingDotSupport=false
+printer.max.characterDistance=2.5
+printer.raster.dotDiameter=1.5
+
+# Default Format Definition (assume A4 portrait)
+format.default.page.width=210
+format.default.page.height=297
+format.default.margin.left=10
+format.default.margin.top=10
+format.default.margin.right=10
+format.default.margin.bottom=10
\ No newline at end of file
diff --git a/src/test/resources/mapping.properties b/src/test/resources/mapping.properties
new file mode 100644
index 00000000..787be18b
--- /dev/null
+++ b/src/test/resources/mapping.properties
@@ -0,0 +1,146 @@
+# JProperties Mapping BrailleTable
+#
+# Table: de-chardefs6
+# Version 1 Rev. 2 (19-07-11)
+#
+# Description:
+# This table contains a mapping from 6-bit-strings to decimal ascii byte values.
+# It is used by the printer backend to encode data sent to the embosser.
+# The pairs are ordered by ascending ascii byte value.
+#
+# =============================================================================
+
+# 0-31:NUL-US (non visible characters)
+# Space
+000000=32
+# !
+000010=33
+# "
+000100=34
+# #
+001111=35
+# $
+000101=36
+# %
+111111=37
+# &
+111101=38
+# '
+000001=39
+# (
+011001=40
+# )
+001011=41
+# *
+001010=42
+# +
+011010=43
+# ,
+010000=44
+# -
+001001=45
+# .
+001000=46
+# /
+010011=47
+# 0
+001101=48
+# 1
+100001=49
+# 2
+110001=50
+# 3
+100101=51
+# 4
+100111=52
+# 5
+100011=53
+# 6
+110101=54
+# 7
+110111=55
+# 8
+110011=56
+# 9
+010101=57
+# :
+010010=58
+# ;
+011000=59
+# <
+000011=60
+# =
+011011=61
+# >
+000110=62
+# ?
+010001=63
+# 64-90:@-Z
+# [
+111011=91
+# 92:\
+# 93:]
+# 94:^
+# _
+000111=95
+# `
+001110=96
+# a
+100000=97
+# b
+110000=98
+# c
+100100=99
+# d
+100110=100
+# e
+100010=101
+# f
+110100=102
+# g
+110110=103
+# h
+110010=104
+# i
+010100=105
+# j
+010110=106
+# k
+101000=107
+# l
+111000=108
+# m
+101100=109
+# n
+101110=110
+# o
+101010=111
+# p
+111100=112
+# q
+111110=113
+# r
+111010=114
+# s
+011100=115
+# t
+011110=116
+# u
+101001=117
+# v
+111001=118
+# w
+010111=119
+# x
+101101=120
+# y
+101111=121
+# z
+101011=122
+# {
+011111=123
+# |
+001100=124
+# ~
+011101=126
+# 127:DEL
\ No newline at end of file
-- 
GitLab