X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils%2Ftestcases%2Forg%2Fsimantics%2Futils%2FTestReflectionUtils.java;h=0e2a015be28638a33ca0d5cd59edac518f840cf3;hb=e626ec21db978f345755e93030acb139ea91f705;hp=8eb2f1963faac3aeb2e7a46cfe83c5b29c58239f;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils/testcases/org/simantics/utils/TestReflectionUtils.java b/bundles/org.simantics.utils/testcases/org/simantics/utils/TestReflectionUtils.java index 8eb2f1963..0e2a015be 100644 --- a/bundles/org.simantics.utils/testcases/org/simantics/utils/TestReflectionUtils.java +++ b/bundles/org.simantics.utils/testcases/org/simantics/utils/TestReflectionUtils.java @@ -1,31 +1,31 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.utils; - -import junit.framework.TestCase; - -import org.junit.Test; - -public class TestReflectionUtils extends TestCase { - - static class Bar

{ - } - - static class Impl extends Bar { - } - - @Test - public void testReflection() { - assertEquals(ReflectionUtils.getSingleParameterType(Impl.class), Number.class); - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.utils; + +import junit.framework.TestCase; + +import org.junit.Test; + +public class TestReflectionUtils extends TestCase { + + static class Bar

{ + } + + static class Impl extends Bar { + } + + @Test + public void testReflection() { + assertEquals(ReflectionUtils.getSingleParameterType(Impl.class), Number.class); + } + +}