Repository: apache/streampipes
Pull request #2213 (2023-11-21 02:14:06)

chore(deps): bump org.postgresql:postgresql from 42.6.0 to 42.7.0
Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.6.0 to 42.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pgjdbc/pgjdbc/releases">org.postgresql:postgresql's releases</a>.</em></p>
<blockquote>
<h2>v42.7.0</h2>
<h2>Changes</h2>
<ul>
<li>update website for 42.7.0 <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/3003">#3003</a>)</li>
<li>Update changelog for release 42.7.0 <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/3001">#3001</a>)</li>
<li>Use a switch statement to compare transaction isolation levels and let the database do the toUpper <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2998">#2998</a>)</li>
<li>feat: support SET statements combining with other queries with semicolon in PreparedStatement <a href="https://github.com/ng-galien"><code>@​ng-galien</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2973">#2973</a>)</li>
<li>Return correct default from PgDatabaseMetaData.getDefaultTransactionIsolation <a href="https://github.com/nvanbenschoten"><code>@​nvanbenschoten</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2992">#2992</a>)</li>
<li>only create function if V14 or greater <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2996">#2996</a>)</li>
<li>Fix problem when calling a procedure returning a refcursor more than 5 times (prepareThreshold)  <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2988">#2988</a>)</li>
<li>chore: add styleCheck Gradle task to report style violations <a href="https://github.com/vlsi"><code>@​vlsi</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2980">#2980</a>)</li>
<li>Include <code>currentXid</code> in exception message <a href="https://github.com/gastaldi"><code>@​gastaldi</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2978">#2978</a>)</li>
<li>Deprecate for removal PGPoint.setLocation(java.awt.Point) to cut dependency to <code>java.desktop</code> module <a href="https://github.com/desruisseaux"><code>@​desruisseaux</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2967">#2967</a>)</li>
<li>feat: return all catalogs for getCatalogs metadata query (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2949">#2949</a>) <a href="https://github.com/pip25"><code>@​pip25</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2953">#2953</a>)</li>
<li>fix: add varbit as a basic type inside the TypeInfoCache <a href="https://github.com/fqazi"><code>@​fqazi</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2960">#2960</a>)</li>
<li>Fix failing tests for version 16.  <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2962">#2962</a>)</li>
<li>fix: allow setting arrays with ANSI type name <a href="https://github.com/bremac"><code>@​bremac</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2952">#2952</a>)</li>
<li>added ADOPTERS.md <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2951">#2951</a>)</li>
<li>feat: Use KeepAlive to confirm LSNs <a href="https://github.com/decmurphy"><code>@​decmurphy</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2941">#2941</a>)</li>
<li>put double ' around log parameter <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2936">#2936</a>)</li>
<li>Fix Issue <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2928">#2928</a> number of ports not equal to number of servers in datasource <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2929">#2929</a>)</li>
<li>Use canonical DateStyle name <a href="https://github.com/JelteF"><code>@​JelteF</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2925">#2925</a>)</li>
<li>un-deprecate SSL_FACTORY_ARG <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2923">#2923</a>)</li>
<li>Method getFastLong should be able to parse all longs <a href="https://github.com/zhurs"><code>@​zhurs</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2881">#2881</a>)</li>
<li>fix: typos in info.html <a href="https://github.com/maffe"><code>@​maffe</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2860">#2860</a>)</li>
<li>bump version for next release <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2859">#2859</a>)</li>
<li>rename changelog for 42.6.0 to the correct name <a href="https://github.com/davecramer"><code>@​davecramer</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2858">#2858</a>)</li>
</ul>
<h2>⬆️ Dependencies</h2>
<!-- raw HTML omitted -->
<ul>
<li>fix(deps): update dependency org.codehaus.groovy:groovy-all to v3.0.19 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2993">#2993</a>)</li>
<li>fix(deps): update dependency jacoco to v0.8.11 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2990">#2990</a>)</li>
<li>fix(deps): update dependency checkstyle to v10.12.4 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2989">#2989</a>)</li>
<li>chore(deps): update codecov/codecov-action digest to f4993f1 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2981">#2981</a>)</li>
<li>chore(deps): update dependency gradle to v7.6.3 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2985">#2985</a>)</li>
<li>chore(deps): update dependency sbt/sbt to v1.9.7 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2984">#2984</a>)</li>
<li>chore(deps): update plugin com.github.johnrengelman.shadow to v8 <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2917">#2917</a>)</li>
<li>chore(deps): update dependency sbt/sbt to v1 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2915">#2915</a>)</li>
<li>chore(deps): update com.github.vlsi to v1.88 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2907">#2907</a>)</li>
<li>fix(deps): update dependency com.google.errorprone:error_prone_core to v2.19.1 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2910">#2910</a>)</li>
<li>fix(deps): update dependency net.ltgt.errorprone:net.ltgt.errorprone.gradle.plugin to v3.1.0 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2913">#2913</a>)</li>
<li>fix(deps): update dependency checkstyle to v10.12.0 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2909">#2909</a>)</li>
<li>chore(deps): update codecov/codecov-action digest to eaaf4be <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2906">#2906</a>)</li>
<li>chore(deps): update plugin com.github.burrunan.s3-build-cache to v1.6 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2898">#2898</a>)</li>
<li>chore(deps): update plugin org.jetbrains.kotlin.jvm to v1.8.21 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2890">#2890</a>)</li>
<li>fix(deps): update dependency org.codehaus.groovy:groovy-all to v3.0.17 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2892">#2892</a>)</li>
<li>fix(deps): update junit5 monorepo to v5.9.3 <a href="https://github.com/renovate"><code>@​renovate</code></a> (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2893">#2893</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md">org.postgresql:postgresql's changelog</a>.</em></p>
<blockquote>
<h2>[42.7.0] (2023-11-20 09:33:00 -0500)</h2>
<h3>Changed</h3>
<ul>
<li>fix: Deprecate for removal PGPoint.setLocation(java.awt.Point) to cut dependency to <code>java.desktop</code> module. [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2967">#2967</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2967">pgjdbc/pgjdbc#2967</a>)</li>
<li>feat: return all catalogs for getCatalogs metadata query closes [ISSUE <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2949">#2949</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2949">pgjdbc/pgjdbc#2949</a>) [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2953">#2953</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2953">pgjdbc/pgjdbc#2953</a>)</li>
<li>feat: support SET statements combining with other queries with semicolon in PreparedStatement [PR #<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2973">#2973</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2973">pgjdbc/pgjdbc#2973</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>chore: add styleCheck Gradle task to report style violations [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2980">#2980</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2980">pgjdbc/pgjdbc#2980</a>)</li>
<li>fix: Include currentXid in &quot;Error rolling back prepared transaction&quot; exception message [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2978">#2978</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2978">pgjdbc/pgjdbc#2978</a>)</li>
<li>fix: add varbit as a basic type inside the TypeInfoCache [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2960">#2960</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2960">pgjdbc/pgjdbc#2960</a>)</li>
<li>fix: Fix failing tests for version 16.  [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2962">#2962</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2962">pgjdbc/pgjdbc#2962</a>)</li>
<li>fix: allow setting arrays with ANSI type name [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2952">#2952</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2952">pgjdbc/pgjdbc#2952</a>)</li>
<li>feat: Use KeepAlive to confirm LSNs [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2941">#2941</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2941">pgjdbc/pgjdbc#2941</a>)</li>
<li>fix: put double ' around log parameter [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2936">#2936</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2936">pgjdbc/pgjdbc#2936</a>) fixes [ISSUE <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2935">#2935</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2935">pgjdbc/pgjdbc#2935</a>)</li>
<li>fix: Fix Issue <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2928">#2928</a> number of ports not equal to number of servers in datasource [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2929">#2929</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2929">pgjdbc/pgjdbc#2929</a>)</li>
<li>fix: Use canonical DateStyle name (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2925">#2925</a>) fixes <a href="https://redirect.github.com/pgbouncer/pgbouncer/issues/776">pgbouncer issue</a></li>
<li>fix: Method getFastLong should be able to parse all longs [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2881">#2881</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2881">pgjdbc/pgjdbc#2881</a>)</li>
<li>docs: Fix typos in info.html [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2860">#2860</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2860">pgjdbc/pgjdbc#2860</a>)</li>
<li>fix: Return correct default from PgDatabaseMetaData.getDefaultTransactionIsolation [PR <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2992">#2992</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/pull/2992">pgjdbc/pgjdbc#2992</a>) fixes [Issue <a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2991">#2991</a>](<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2991">pgjdbc/pgjdbc#2991</a>)</li>
<li>test: fix assertion in RefCursorFetchTestultFetchSize rows</li>
<li>test: use try-with-resources in LogicalReplicationStatusTest</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/1566eed0caeb26108f9df1d28255538767b7676f"><code>1566eed</code></a> update website for 42.7.0 (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/3003">#3003</a>)</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/1c33111b4c5a2268677a263d65eded90dc1c321b"><code>1c33111</code></a> Update changelog for release 42.7.0 (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/3001">#3001</a>)</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/65f158ed8e06ffea77ca7f3b8413847817a7831f"><code>65f158e</code></a> Use a switch statement to compare transaction isolation levels  (<a href="https://redirect.github.com/pgjdbc/pgjdbc/issues/2998">#2998</a>)</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/3ced0bc7ba408ecdcb0101fbe586c44e50e04012"><code>3ced0bc</code></a> feat: support SET statements combining with other queries with semicolon in P...</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/e4f47d011489b1174ac4a2ed126cdfc24b180e66"><code>e4f47d0</code></a> test: fix assertion in RefCursorFetchTestultFetchSize&quot; rows</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/8bcc7ed10bde5e4f5bb7fa8fddf107361938869f"><code>8bcc7ed</code></a> style: remove excessive <a href="https://github.com/NonNull"><code>@​NonNull</code></a></li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/54ccdf7af7c5fc9c829587dc86846a1b3c4863da"><code>54ccdf7</code></a> test: add call.setFetchSize to RefCursorFetchTest</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/2a17a352d98ee78acf8895563b6cdd4ff55dcbb1"><code>2a17a35</code></a> test: use try-with-resources in LogicalReplicationStatusTest</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/69debfaca743e9ca6aa45b9305162dd64d9c3715"><code>69debfa</code></a> fix: sort the results of java.sql.DatabaseMetaData#getCatalogs as per its spe...</li>
<li><a href="https://github.com/pgjdbc/pgjdbc/commit/de742923e9a2d045f5718337735abcbb5b1ae9cb"><code>de74292</code></a> Return correct default from PgDatabaseMetaData.getDefaultTransactionIsolation...</li>
<li>Additional commits viewable in <a href="https://github.com/pgjdbc/pgjdbc/compare/REL42.6.0...REL42.7.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.postgresql:postgresql&package-manager=maven&previous-version=42.6.0&new-version=42.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/pom.xml b/pom.xml
index bccd9c07c1..8b951dcf83 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,7 +106,7 @@
         <plexus-component-annotations.version>2.1.1</plexus-component-annotations.version>
         <plexus-interactivity-api.version>1.1</plexus-interactivity-api.version>
         <plexus-utils.version>3.5.0</plexus-utils.version>
-        <postgresql.version>42.6.0</postgresql.version>
+        <postgresql.version>42.7.0</postgresql.version>
         <protobuf.version>3.25.0</protobuf.version>
         <pulsar.version>2.10.1</pulsar.version>
         <quartz.version>2.3.2</quartz.version>
diff --git a/streampipes-extensions/streampipes-processors-enricher-jvm/pom.xml b/streampipes-extensions/streampipes-processors-enricher-jvm/pom.xml
index 0412231f7b..bf759ac5ff 100644
--- a/streampipes-extensions/streampipes-processors-enricher-jvm/pom.xml
+++ b/streampipes-extensions/streampipes-processors-enricher-jvm/pom.xml
@@ -45,6 +45,12 @@
             <groupId>org.graalvm.js</groupId>
             <artifactId>js-scriptengine</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.streampipes</groupId>
+            <artifactId>streampipes-test-utils</artifactId>
+            <version>0.95.0-SNAPSHOT</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/streampipes-extensions/streampipes-processors-enricher-jvm/src/main/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/SizeMeasureProcessor.java b/streampipes-extensions/streampipes-processors-enricher-jvm/src/main/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/SizeMeasureProcessor.java
index 850afe333a..78e5a82f33 100644
--- a/streampipes-extensions/streampipes-processors-enricher-jvm/src/main/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/SizeMeasureProcessor.java
+++ b/streampipes-extensions/streampipes-processors-enricher-jvm/src/main/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/SizeMeasureProcessor.java
@@ -43,7 +43,7 @@ import java.io.ObjectOutputStream;
 
 public class SizeMeasureProcessor extends StreamPipesDataProcessor {
 
-  private static final String SIZE_UNIT = "sizeUnit";
+  static final String SIZE_UNIT = "sizeUnit";
   static final String BYTE_SIZE = "BYTE";
   static final String KILOBYTE_SIZE = "KILOBYTE";
   static final String MEGABYTE_SIZE = "MEGABYTE";


Test patch:
diff --git a/streampipes-extensions/streampipes-processors-enricher-jvm/src/test/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/TestSizeMeasureProcessor.java b/streampipes-extensions/streampipes-processors-enricher-jvm/src/test/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/TestSizeMeasureProcessor.java
new file mode 100644
index 0000000000..4702c35af0
--- /dev/null
+++ b/streampipes-extensions/streampipes-processors-enricher-jvm/src/test/java/org/apache/streampipes/processors/enricher/jvm/processor/sizemeasure/TestSizeMeasureProcessor.java
@@ -0,0 +1,150 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure;
+
+
+
+import org.apache.streampipes.extensions.api.pe.routing.SpOutputCollector;
+import org.apache.streampipes.model.graph.DataProcessorDescription;
+import org.apache.streampipes.model.graph.DataProcessorInvocation;
+import org.apache.streampipes.model.runtime.Event;
+import org.apache.streampipes.model.runtime.EventFactory;
+import org.apache.streampipes.model.runtime.SchemaInfo;
+import org.apache.streampipes.model.runtime.SourceInfo;
+import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
+import org.apache.streampipes.test.extensions.api.StoreEventCollector;
+import org.apache.streampipes.test.generator.InvocationGraphGenerator;
+import org.apache.streampipes.test.generator.grounding.EventGroundingGenerator;
+import org.apache.streampipes.wrapper.params.compat.ProcessorParams;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+import static org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureProcessor.BYTE_SIZE;
+import static org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureProcessor.KILOBYTE_SIZE;
+import static org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureProcessor.MEGABYTE_SIZE;
+import static org.apache.streampipes.processors.enricher.jvm.processor.sizemeasure.SizeMeasureProcessor.SIZE_UNIT;
+import static org.junit.Assert.assertEquals;
+
+@RunWith(Parameterized.class)
+public class TestSizeMeasureProcessor {
+
+  private static final Logger LOG = LoggerFactory.getLogger(TestSizeMeasureProcessor.class);
+
+  @org.junit.runners.Parameterized.Parameters
+  public static Iterable<Object[]> data() {
+
+    /*
+    249 bytes is the base size of an object when first tested.
+    Allowing up to 250 bytes comparison error in case of inconsistent base sizes across platforms
+     */
+    return Arrays.asList(new Object[][]{
+            { BYTE_SIZE, 10240 - 249, 10240.0, 250.0},
+            { KILOBYTE_SIZE, 10240 - 249, 10.0, 0.025},
+            { MEGABYTE_SIZE, (1024 * 1024) - 249, 1.0, 0.0025}
+    });
+  }
+
+  @Parameterized.Parameter
+  public String sizeUnit;
+
+  @Parameterized.Parameter(1)
+  public int numOfBytes;
+
+  @Parameterized.Parameter(2)
+  public double expectedSize;
+
+  @Parameterized.Parameter(3)
+  public double allowableError;
+
+  @Test
+  public void testSizeMeasureProcessor() {
+    SizeMeasureProcessor processor = new SizeMeasureProcessor();
+    DataProcessorDescription originalGraph = processor.declareModel();
+    originalGraph.setSupportedGrounding(EventGroundingGenerator.makeDummyGrounding());
+
+    DataProcessorInvocation graph =
+            InvocationGraphGenerator.makeEmptyInvocation(originalGraph);
+
+
+    ProcessorParams params = new ProcessorParams(graph);
+    params.extractor().getStaticPropertyByName(SIZE_UNIT, OneOfStaticProperty.class).getOptions()
+            .stream().filter(ot -> ot.getInternalName().equals(sizeUnit)).findFirst()
+            .get().setSelected(true);
+
+
+    SpOutputCollector eventCollector = new StoreEventCollector();
+
+    processor.onInvocation(params, eventCollector, null);
+
+    LOG.info("Sending event with numOfBytes "
+        + numOfBytes + ", sizeUnit: " + sizeUnit);
+    double size = sendEvents(processor, eventCollector);
+
+    LOG.info("Expected size is {}", expectedSize);
+    LOG.info("Actual size is {}", size);
+    LOG.info("Allowable error is {}", allowableError);
+    assertEquals(expectedSize, size, allowableError);
+  }
+
+  private Double sendEvents(SizeMeasureProcessor processor, SpOutputCollector spOut) {
+    double size = 0.0;
+    Event event = makeEvent(numOfBytes);
+
+    processor.onEvent(event, spOut);
+    try {
+      Thread.sleep(100);
+    } catch (InterruptedException e) {
+      e.printStackTrace();
+    }
+    try {
+      size = event.getFieldBySelector(SizeMeasureProcessor.EVENT_SIZE)
+              .getAsPrimitive()
+              .getAsDouble();
+    } catch (IllegalArgumentException e) {
+      e.printStackTrace();
+    }
+    return size;
+  }
+  private Event makeEvent(int numOfBytes) {
+    Map<String, Object> map = new HashMap<>();
+    map.put("Test", new ObjectWithSize(numOfBytes));
+    return EventFactory.fromMap(map,
+            new SourceInfo("test" + "-topic", "s0"),
+            new SchemaInfo(null, new ArrayList<>()));
+  }
+
+  public static class ObjectWithSize implements Serializable {
+    private final byte[] data;
+
+    public ObjectWithSize(int numOfBytes) {
+      this.data = new byte[numOfBytes];
+    }
+  }
+}
\ No newline at end of file