From c86bd15382924e732fca8dc403aaa3ef0784c625 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 4 Nov 2012 01:51:23 -0300 Subject: [PATCH] Fix unit tests. --- .../exporter/FreemindExporter.java | 2 +- .../src/test/resources/data/wisemaps/bug3.mmr | 36 +++++++++---------- .../src/test/resources/data/wisemaps/enc.mmr | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java index 77f96b25..993dc8e6 100755 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java @@ -206,7 +206,7 @@ public class FreemindExporter final StringBuilder htmlContent = new StringBuilder(""); for (String line : text.split("\n")) { line = StringEscapeUtils.escapeXml(line); - htmlContent.append("

").append(line).append("

"); + htmlContent.append("

").append(line.trim()).append("

"); } htmlContent.append(""); diff --git a/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr b/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr index fd2e1044..a05f92be 100644 --- a/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr +++ b/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr @@ -25,7 +25,7 @@

Firm's turnover from (new to firm)

-

product innovation (as a pecentage of total turnover)

+

product innovation (as a pecentage of total turnover)

@@ -37,7 +37,7 @@

Increase in the probability to innovate linked to ICT use

-

(in product innovation, process innovation, organisational innovaton, marketing innovation)

+

(in product innovation, process innovation, organisational innovaton, marketing innovation)

@@ -48,7 +48,7 @@

Scientific articles by type of collaboration (per capita)

-

(international co-authoriship, domestic co-authoriship, single author)

+

(international co-authoriship, domestic co-authoriship, single author)

@@ -78,7 +78,7 @@

Increase in th number of firms with

-

international/national collaboration on innovation

+

international/national collaboration on innovation

@@ -261,8 +261,8 @@ -

Share of high-technology export in the total volume

-

of production of goods, works and services

+

Share of high-technology export in the total volume

+

of production of goods, works and services

@@ -309,7 +309,7 @@

Number of joint projects conducted by the local comapnies

-

and local consulting/intermediary agencies

+

and local consulting/intermediary agencies

@@ -338,7 +338,7 @@

Investments in ICT by asset (IT equipment,

-

communication equipment, software)

+

communication equipment, software)

@@ -392,7 +392,7 @@

Amount of domestically protected intellectual

-

property per 1 mln. population

+

property per 1 mln. population

@@ -425,7 +425,7 @@

Number of advanced ICT introduced in the budgetary organizations

-

(regional power, municipal bodies, social and educational organizations)

+

(regional power, municipal bodies, social and educational organizations)

@@ -437,7 +437,7 @@

Number of management innovations introduced in the budgetary organizations

-

(regional power, municipal bodies, social and educational organizations)

+

(regional power, municipal bodies, social and educational organizations)

@@ -475,7 +475,7 @@

Publications: Academic articles in international peer-reviewed

-

journals per 1,000 researchers [articles/1,000 researchers].

+

journals per 1,000 researchers [articles/1,000 researchers].

@@ -494,7 +494,7 @@

Academic licenses: Number of licenses

-

per 1,000 researchers.[licenses/researcher]

+

per 1,000 researchers.[licenses/researcher]

@@ -577,7 +577,7 @@

Gazelle tenant: Share of tenants with

annual revenue growth of more than 20%

-

for each of the past four years or since formation [%]

+

for each of the past four years or since formation [%]

@@ -608,7 +608,7 @@

Perception (opinion poll) of business managers

-

regarding public support programmes

+

regarding public support programmes

@@ -621,7 +621,7 @@

Perception of business managers in terms

-

of level of transparency of support measures in the region

+

of level of transparency of support measures in the region

@@ -731,7 +731,7 @@

Growth of the volume of production in the cluster companies

-

to the volume of state support for the cluster

+

to the volume of state support for the cluster

@@ -766,7 +766,7 @@

FASIE projects: Number of projects supported

-

by the FASIE per 1,000 workers [awards/worker]

+

by the FASIE per 1,000 workers [awards/worker]

diff --git a/wise-webapp/src/test/resources/data/wisemaps/enc.mmr b/wise-webapp/src/test/resources/data/wisemaps/enc.mmr index 70ae1b94..bd6a81a3 100644 --- a/wise-webapp/src/test/resources/data/wisemaps/enc.mmr +++ b/wise-webapp/src/test/resources/data/wisemaps/enc.mmr @@ -15,7 +15,7 @@

scaled from the individuals on whom measurements are

made to the community or ecosystem levels at which infer-

ences are drawn (Swenson etal. 2006,2007,Reich,Wright

-

& Lusk 2007;Kraft,Valencia & Ackerly 2008).

+

& Lusk 2007;Kraft,Valencia & Ackerly 2008).