From 35139b1ca2c3f03fade040f0d987d41dd0fe0bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=BChne?= Date: Sat, 12 Apr 2003 14:01:22 +0000 Subject: [PATCH] test files for NewLineAtEOF check Note: These files are checked in as binary files so the unit tests are independent of how CVS messes around with newline characters when these files are checked out --- .../tools/checkstyle/InputNewlineAtEndOfFile.java | 14 ++++++++++++++ .../checkstyle/InputNoNewlineAtEndOfFile.java | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/testinputs/com/puppycrawl/tools/checkstyle/InputNewlineAtEndOfFile.java create mode 100644 src/testinputs/com/puppycrawl/tools/checkstyle/InputNoNewlineAtEndOfFile.java diff --git a/src/testinputs/com/puppycrawl/tools/checkstyle/InputNewlineAtEndOfFile.java b/src/testinputs/com/puppycrawl/tools/checkstyle/InputNewlineAtEndOfFile.java new file mode 100644 index 000000000..807515fce --- /dev/null +++ b/src/testinputs/com/puppycrawl/tools/checkstyle/InputNewlineAtEndOfFile.java @@ -0,0 +1,14 @@ +//////////////////////////////////////////////////////////////////////////////// +// Test case file for checkstyle. +// Created: 2003 +//////////////////////////////////////////////////////////////////////////////// +package com.puppycrawl.tools.checkstyle; + +/** + * Test case for detection of an existing newline at EOF, using the + * NewlineAtEndOfFileCheck. + * @author Christopher Lenz + **/ +public interface InputNoNewlineAtEndOfFile +{ +} diff --git a/src/testinputs/com/puppycrawl/tools/checkstyle/InputNoNewlineAtEndOfFile.java b/src/testinputs/com/puppycrawl/tools/checkstyle/InputNoNewlineAtEndOfFile.java new file mode 100644 index 000000000..cad99308b --- /dev/null +++ b/src/testinputs/com/puppycrawl/tools/checkstyle/InputNoNewlineAtEndOfFile.java @@ -0,0 +1,14 @@ +//////////////////////////////////////////////////////////////////////////////// +// Test case file for checkstyle. +// Created: 2003 +//////////////////////////////////////////////////////////////////////////////// +package com.puppycrawl.tools.checkstyle; + +/** + * Test case for detection of missing newlines at EOF, using the + * NewlineAtEndOfFileCheck. + * @author Christopher Lenz + **/ +public interface InputNoNewlineAtEndOfFile +{ +} \ No newline at end of file