aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcases/org')
-rw-r--r--src/testcases/org/apache/poi/ss/formula/ptg/TestAbstractFunctionPtg.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/ptg/TestAbstractFunctionPtg.java b/src/testcases/org/apache/poi/ss/formula/ptg/TestAbstractFunctionPtg.java
new file mode 100644
index 0000000000..bf17bca54f
--- /dev/null
+++ b/src/testcases/org/apache/poi/ss/formula/ptg/TestAbstractFunctionPtg.java
@@ -0,0 +1,60 @@
+/* ====================================================================
+ 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.poi.ss.formula.ptg;
+
+import static org.junit.Assert.assertEquals;
+
+import org.apache.poi.util.LittleEndianOutput;
+import org.junit.Test;
+
+public class TestAbstractFunctionPtg {
+
+ @Test
+ public void testConstructor() {
+ FunctionPtg ptg = new FunctionPtg(1, 2, null, 255);
+ assertEquals(1, ptg.getFunctionIndex());
+ assertEquals(2, ptg.getDefaultOperandClass());
+ assertEquals(255, ptg.getNumberOfOperands());
+ }
+
+ @Test(expected=RuntimeException.class)
+ public void testInvalidFunctionIndex() {
+ new FunctionPtg(40000, 2, null, 255);
+ }
+
+ @Test(expected=RuntimeException.class)
+ public void testInvalidRuntimeClass() {
+ new FunctionPtg(1, 300, null, 255);
+ }
+
+ private static class FunctionPtg extends AbstractFunctionPtg {
+
+ protected FunctionPtg(int functionIndex, int pReturnClass,
+ byte[] paramTypes, int nParams) {
+ super(functionIndex, pReturnClass, paramTypes, nParams);
+ }
+
+ public int getSize() {
+ return 0;
+ }
+
+ public void write(LittleEndianOutput out) {
+
+ }
+ }
+}
6 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/l10n/de/files_versions.po
blob: f4e27ec5144301a09f73d99373f9dfe85a61459e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# 
# Translators:
# I Robot <thomas.mueller@tmit.eu>, 2012.
#   <niko@nik-o-mat.de>, 2012.
#   <thomas.mueller@tmit.eu>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2012-09-03 02:04+0200\n"
"PO-Revision-Date: 2012-09-02 06:01+0000\n"
"Last-Translator: JamFX <niko@nik-o-mat.de>\n"
"Language-Team: German (http://www.transifex.com/projects/p/owncloud/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"

#: js/settings-personal.js:31 templates/settings-personal.php:10
msgid "Expire all versions"
msgstr "Alle Versionen löschen"

#: templates/settings-personal.php:4
msgid "Versions"
msgstr "Versionen"

#: templates/settings-personal.php:7
msgid "This will delete all existing backup versions of your files"
msgstr "Dies löscht alle vorhandenen Sicherungsversionen Ihrer Dateien."

#: templates/settings.php:3
msgid "Enable Files Versioning"
msgstr "Datei-Versionierung aktivieren"