2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] NameResolver2 for inner class

  • Subject: Re: [QF-Test] NameResolver2 for inner class
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 03 Sep 2012 12:02:38 +0200

Hello Ioan,

I know that you already have resolved your issue, but for the record:

To register a resolver for an inner class, use the $-syntax for the
class name, i.e. some.package.OuterClass$InnerClass. This is the same
way that QF-Test records the the class for the component. You should
normally not use this for anonymous inner classes like
some.package.SomeClass$1 because the number may change when another
anonymous inner class gets added to the same outer class. QF-Test
never records anonymous inner classes for components, it uses the
super class instead.

Best regards,

LE GUE Ioan <Ioan.LEGUE@?.com> writes:

> Hello
> I have a class Test with an inner class.
> Is there a way to add a NameResolver2  for an inner class instance?
> Best regards, Ioan

Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833