@@ -0,0 +1,1521 @@
+package com.github.sarxos.webcam.util.jh;%0A%0Aimport java.awt.image.BufferedImage;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.junit.Test;%0A%0A%0Apublic class JHBlurFilterTest %7B%0A%0A%09@Test%0A%09public void test_filterNonPremultiplied() %7B%0A%0A%09%09final JHBlurFilter filter = new JHBlurFilter();%0A%09%09filter.setPremultiplyAlpha(false);%0A%0A%09%09final BufferedImage bi1 = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB);%0A%09%09final BufferedImage bi2 = filter.filter(bi1, null);%0A%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getWidth())%0A%09%09%09.isEqualTo(bi2.getWidth());%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getHeight())%0A%09%09%09.isEqualTo(bi2.getHeight());%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getType())%0A%09%09%09.isEqualTo(bi2.getType());%0A%09%7D%0A%0A%09@Test%0A%09public void test_filterPremultiplied() %7B%0A%0A%09%09final JHBlurFilter filter = new JHBlurFilter();%0A%09%09filter.setPremultiplyAlpha(true);%0A%0A%09%09final BufferedImage bi1 = new BufferedImage(10, 10, BufferedImage.TYPE_INT_ARGB);%0A%09%09final BufferedImage bi2 = filter.filter(bi1, null);%0A%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getWidth())%0A%09%09%09.isEqualTo(bi2.getWidth());%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getHeight())%0A%09%09%09.isEqualTo(bi2.getHeight());%0A%09%09Assertions%0A%09%09%09.assertThat(bi1.getType())%0A%09%09%09.isEqualTo(bi2.getType());%0A%09%7D%0A%0A%09@Test%0A%09public void test_setGetPremultiplyAlpha() %7B%0A%0A%09%09final JHBlurFilter filter = new JHBlurFilter();%0A%0A%09%09filter.setPremultiplyAlpha(true);%0A%09%09Assertions%0A%09%09%09.assertThat(filter.getPremultiplyAlpha())%0A%09%09%09.isTrue();%0A%0A%09%09filter.setPremultiplyAlpha(false);%0A%09%09Assertions%0A%09%09%09.assertThat(filter.getPremultiplyAlpha())%0A%09%09%09.isFalse();%0A%09%7D%0A%7D%0A

Add unit test for JHBlurFilter