Future of java and testing

So I cry a little inside every time I have to change my design so that I can test things. Now I don't mind breaking the functionality of a MDB out into a POJO..that's fine....but I HATE making private methods public just do I can test them.
Are there any plans to integrate unit testing into java and to allow testing of private methods?

Can we rant about testing here? Oh goodie :-)
I've never made a private method public or protected for that reason, or even ever wanted to test a private method. I only test everything that I promise, and I don't promise even myself anything about my own private parts :-).
If I have some private functionality that is complex enough I do want to test it in itself, I'll delegate that part to another class and test that. In my experience, any refactoring I do to increase testability, I would also end up doing for readability or reusability. And it's never included increasing a method's visibility.
public void testJunk{
MyClass mc = new MyClass();
mc.myMethod();
}I do write such tests actually, albeit very very seldom. And I don't have anyone telling me I should have X% coverage, which I agree is moronic. Metrics are overrated. I do force myself to keep my test coverage of publics very high, because I've never regretted spending time to write a test, but often regretted not having spent that time.
Now, I assume in the above example myMethod is not a method with an effect that can be asserted, otherwise it's just an incomplete test and there should be more, not less. But even if you can't assert anything about it, you're testing that default instantiation followed by that method call doesn't throw. You're expecting it, you're promising it at least implicitly, so why not test it?
That all said, there is something about testing and visibility that bites me. I don't want to put test classes in the same package as the testees. As a result, every class and method that I test is public where it could possibly have been package access. So I do increase from package to public when I promote a class from "too dumb to be tested" to a "test-worthy" class. I'm okay with this in itself; if I'm unit testing it, chances are it can be used in a different context anyway.
What does bug me is that I'm effectively skipping package access, not using it as it's intended, and trading the benefits that can come with it for maintaining this way of testing. Whether a class should be tested or not says more to me than whether it should be public or package, and my way public is synonymous for tested (I often enforce this with static code analysis: if it's public but not tested it will be flagged as "could have lower visibility" or some phrasing to that effect). But that's not the Java way of using public and private access. Oh well.
So, I've been wondering about this, what do you people do? Do you decide about public/package a priori, and then put the test class in the same package as the testee? Or do you not test it if it's package access?

Similar Messages

  • The future of java and what is the most necessary skill to learn

    hi, friends,
    This is a serious question, so please answer seriously.
    1. The future of java
    Are there any future for java? What I mean are: are there any jobs for java developer in the future? are there any chances for new java company to survive?
    2. What is the most needed skill in so many java technology?
    There are so many sections in java technology. so what is the most needed one for one to find a job? what is the most promising section for one to build a company.
    Thank your very much!

    It's a lousy question really.
    1) There are very few companies you'd call a 'java company'. There are companies that use java, but they also by and large use C++, DBMS systems, and a whole host of other technologies. If java died, they'd switch to whatever technology killed it. Any decent programmer is flexible enough to learn a new language in a matter of weeks. It's the ability to work with the theory behind the code rather than the knowledge of syntax that's important.
    2) It depends entirely on what you're doing. Working with a company where databases are key? Then you need Oracle, or SQL. Working with web technology? Perl, JSP, PHP, stuff like that is what you want. Working in high performance application design? You need C++. Graphics? Take a look at OpenGL or Java3d.
    The most promising section to build a company? If there was a straight answer to that 1000 companies would have sprung up already and filled the niche.
    Basically, if you want a successful career in programming, don't become a java programmer, become a programmer full stop. If you think you'll be working with java when you retire in 40-odd years you're mistaken. You need to grasp the basic concepts of application and algorithm design, and be quick to learn new technologies and evaluate them against what exists already.
    It can take 3 years to go from complete newbie to fluent in a single programming language. It can then take less than 3 days to become fluent in another.

  • [Java and all else] Requirements tracking, testing, and versioning

    Hello,
    as a semi-experimental subject, I am considering managing requirements and test documents in the same version control system as the code.
    For some reasons, this versioning policy doesn't seem mainstream, so I'd like to have your opinion on that.
    +N.B.: the prefix "java and all else" refers to the fact that I'm using this area to post a message that is related not only to Java but also to other topics (people, processes, tools,...) that help program in Java - so this post is not really off-topic either. For the record, I filed a suggestion to open a dedicated forums to discuss topics like that, although it hasn't received enthusiastic support so far :o(...+
    Here is how I had imagined to proceed:
    - requirements document gets edited and stored as text in the VCS
    - test plan (basically a matrix of which tests cover which requirements) goes into the VCS as well, text or binary
    - test instructions (detailed steps, actions, expected results) are stored as text in the VCS
    - test results - I do'nt know yet, but I planned to store them as text (lists of testId=result) in the VCS (I'm not sure indeed, that those would go into the VCS)
    The advantage of versioning those as text is that all VCS clients support easy-as-a-click history browsing and diff capabilities.
    Diffs and logs are useful to trace when and why a requirement has appeared, evolved, obsolated,... Especially in long-lived systems whose maintenance crew rarely embeds "historical" pioneers who developed the original systems.
    My questions:
    1) Is it good practice to version such docs in the same repository as the code?
    I've never seen this done.
    - In half of the shops I've been these docs are not really versioned (the PM considered it enough that the latest applicable version of the docs was available)
    - The other half has used versioning systems ranging from ad-hoc (shared folder acting as repository of all versions) to "document management systems". I found such tools to be developer-unfriendly (poor diff capability, poor text searching), and developers to be office-document-reluctant (mostly because of the shortcomings of the doc format and doc management systems).
    - The third half <wink to aficionados of French cinema> used dedicated softwares (Test Director, RQM,...) to manage requiremetns, test plans, test cases, test results,... The drawback is that the developers were hardly involved in using such tools, and even when they were, were not trained to use the administrative and metadata capabilities (who modified the test steps, when and why?).
    On the contrary, developers would easily and gladly browse histiry, check diffs, etc... on text documents versioned using their daily-used source control system.
    2) Are there "standard", preferrably text-based, formats, for the documents listed above?
    Each and every organization I've seen had its own format, but most items have equivalents in all organizations, even if disguised under different terminologies. I have no formal education or training in quality assurance, but I guess some ISO or CMM norms define those recurring items, and I expect some abstract XML format might exist
    3) Are there tools already that cover edition and exploitation of such formats, or why not, of the versioning of such formats (naive example, graphing the pass rate of tests over time)?
    A pet project of mine is to develop and open-source some Swing UI to do this, but existing tools would save me the trouble.
    I'm looking forward to reading about your own experience.
    Best regards,
    Jerome.
    Edited by: jduprez on Jun 4, 2010 10:33 PM
    Fixed link.

    I don't have data on comparative bug rates because we did not do studies focused on that. This stuff was mostly driven by convenience #) considerations.
    Subjectively, yes it seemed to have lower bug rate compared to maintaining documents in, say, pdf format (like our doc writers did with User/Dev guides). BTW doc writers are another kind of guys who dislike plain text.
    As for using test results history the way you describe - agree, that makes some sense. Now that you mention it I recall using it myself that way, in one of the projects where testers managed to establish really convenient way to assess test execution history. After I figured how easy it was, I began using it. Quite helpful indeed.
    Regarding "tool or format that mapped tests to specific requirements" in your original post - did you consider Polarion? IIRC it supports mapping requirements to test descriptions. Telelogic DOORS are maybe also capable of that but I am not completely certain.
    #) convenience -- BTW we maintained test descriptions not in plain text but in simple HTML (you know few tags one can use in javadocs). With limited line length, it is almost as VCS friendly as plain text, even with tables:
    <!DOCTYPE "stuff to make HTML validator happy">
    <html><title>test description</title>
    <body>
    <table>
      <tr>
        <td>test id</td>
        <td>synchronized.10988343</td>
      </tr>
      <tr>
        <td>instructions</td>
        <td>
          <ul>
            <li>sacrifice a goat
              <ul><li>under the full moon</li></ul>
            </li>
            <li>twirl counterclockwise
              <ul><li>until you barf</li></ul>
            </li>
        </td>
      </tr>
      <tr>
        <td>pass criteria</td>
        <td>
          <ul>
            <li><b>pass</b> if method is synchronized</li>
            <li><b>fail</b> otherwise</li>
          </ul>
        </td>
      </tr>
      <tr>
        <td>comments</td>
        <td>
           <a href="http://forums.sun.com/thread.jspa?messageID=10988343#10988343">
           click here for details</a>
        </td>
      </tr>
    </table>
    </body>
    </html>
    {code}
    We were also using [HTML validator|http://validator.w3.org/|tool] tool to automatically catch simple syntax mistakes like missing tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using Terminal in Mac OSX to program and test java

    I bought a book on java and it says I should not use a JDK like Net Beans when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program? I know my Mac sees java in terminal because tells me Im running "version 1.5.0_07"
    I just need a link to some info on how to get started using Terminal for my command line with java.
    I think if I could get a path set up from the command line to my text file and have javac see it I would be in pretty good shape. At least for now.
    If I use a text saved plain text file (.java) how do I set up a path to it using javac from the command line?
    Where can I find or link to this kind of info?
    Macbook Pro Mac OS X (10.4.10)

    ayusman_dikshit wrote:
    Hi,
    seems like you have not tried out a few things.
    1. Set up the JAVA_HOME environment variable. (I assume you pretty much know it) the folder where java is installed.
    2. set up the environment variable to point to the bin folder inside the java installation folder.
    3. open up a console (it seems from your post you know it.), type java -version see the java version.
    4. type in javac, press enter: you should get the javac options.
    5. type in java, you should see the java options.
    Write your programs in a text editor, save it as somename.java.
    open a console, change to the directory containing the java file.
    type: javac somename.java <PRESS ENTER>
    you should get the compilation errors if any.
    if not
    type in: java somename.java
    Hope this helps.
    Regards,
    AyusmanStep 1 and 2 are generally not needed. Mac OS X comes with Java configured up and running right out of the box.

  • Accessibility and Java GUI testing

    Hi,
    Can java accessibility be used for developing java GUI testing tool for applet embedded in IE? If not is there any other way we can test Java Appet GUI?
    best regards
    Krishna

    I do not know of a free tool, but you can use the Robot class in Java to create what you need.

  • Using Terminal to program and test java.

    I bought a book on java and it says I should not use a JDK when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program?
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    If I use a text editor how do I set up a path to it using javac?
    Where can I find or link to this kind of info?

    David Bixler wrote:
    I bought a book on java and it says I should not use a JDK when first learning java.
    I think they mean IDE, considering that Java is the JDK. And I agree with that idea, not just for Java, but for any language.
    How do you go about setting up the computer to use terminal to write and compile a java program?
    There isn't anything to setup. Just run Terminal and type "vi hello.java" or "nano hello.java". To compile, type "javac hello.java".
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    That is not necessarily a big question, just fundamental. Try Google. It becomes second nature after a couple of decades so I don't really know where to tell you to look. People do tend to have a big list of links, hopefully they can contribute some.
    If I use a text editor how do I set up a path to it using javac?
    It should already be in your path.
    Where can I find or link to this kind of info?
    Try Google. People like it. You should find many pages similar to this.

  • Adobe Air and Flash Future on Desktop and Mobile Devices

    Hello,
    iam interested to develop for mobil and desktop devices with AS3 and Flash Professional and i have any question.
    I see also many benefits to develop in flash as in java because javas gui development is based on swing a old java graphics engine.
    Next reason is the plattform like Linux,Windows,IOS.,the Game Development and other stuff.
    With Flash i can create nextgen interactive stunning cool gui interfaces for apps.
    I dont know why flash sucks for the market and devices.
    My question: is as3 and flash save for the future ?
    Make it really sense to learn as3 and Flash ?
    I have read many blogs,threads on adobe and other forums year 2012 Adobe stop flash development,
    and now 2013 google androids kitkat now have removed api features that kills complete flash !!!
    Other comments says Flash is dead for the market!? Many frustradet flash developers he work 10 years and more with flash are crying.
    So what is really the Future for the A3 and Flash Development ?
    Thanks and greetings

    Hi mc_gfx,
    > You think i can get started with flash and air development without worries?
    Software development always involves risk, so you can't really do much without worries.       AIR in particular is a cutting (bleading?) edge technology. Adobe is attempting to solve a difficult problem with limited resources, and the results aren't always ideal.
    If you want to deploy to Android and iOS, and you write two native apps, you face a 100% risk that you'll have to write your app twice. While this may not take twice as long as writing it once, it will come close.
    If you use AIR, you only have to write your app once, but you face other risks.
    Here's the problem. In AIR, Adobe is attempting to create a framework that translates ActionScript into bytecode for two different platforms. This isn't easy. Every time Apple or Google upgrades their operating system Adobe has to try to refine AIR so that it translates everything correctly for the new OS. AIR also has to maintain backward compatability with all previous OSs (is that the plural of OS?). AIR also has to work with many different models of Android and iOS devices. This includes supporting most, though not all, of the many different capabilities that these OSs support. Adobe, wisely, doesn't try to support every new feature immediately. Instead, it picks and chooses which new features it will support, and how soon. But even taking this approach I have the impression that their task is daunting.
    If you research this forum you'll find numerous examples of people complaining about features that don't quite work correctly. For example, I've put ~6 developer months into developing a language learning app, only to find that AIR's MP3 playback support has some limitations which severely impact the playback of voice recordings, which severely degrades the value of my app. I'm hoping that Adobe will fix this bug, but it's been two months now, with no movement. Another serious bug, involving audio recording using the device microphone, took three months to get fixed. During that period I had no idea whether it would get fixed, or whether I'd have to disable an important feature of my app on iOS.
    So, you want "without worries"?  
    Some people are lobbying Adobe to include support for Windows Phone in the AIR framework. IMHO, this is madness. Adobe clearly has limited resources. Let them first focus on making basic features like MP3 playback work properly on the platforms that they already support.
    The same issues probably apply to all the other cross-platform development frameworks - Sencha, Xamarin, etc. They face the same difficult technical challenges. I can't speak to the question of how well they're addressing them, but I'd want research them carefully before I invested a lot of time into developing with them.
    With regards to AIR, here's my advice: Before you start a non-trivial project using AIR, make a list of all the things that your app will do, then see if you can find existing apps created with AIR that do these things. Make sure that the feature works on both Android and iOS. You won't be able to test on every device that you'd like to support, but pick a few and test on them.
    You don't need to worry about your app's logic - ActionScript is great for that - and AIR translates it just fine. But think carefully about your app's 'skin' - all the ways that you want it to interact with the outside world - input and output - and confirm that apps exist that demonstrate that AIR can handle these features. Also think about the app's infrastructure - network interactions - database interactions - etc.
    You'll probably end up with a list of features that you haven't been able to confirm. You can vet these by creating a proof of concept that confirms that AIR will support these needs. Do this before you start developing the full app. Once that's done, pray that everything that works now will continue to work with future OSs and devices. Adobe has a pretty good record on this sort of things, but there aren't any guarantees.
    Don't worry, be happy        ?
    HTH,
    Douglas

  • On YouTube, I can't play playlists there. It says I need to update my Java and it is updated already. When I go to different sites like Yahoo! the links and images are all distorted. This is the second time this has happened to me now

    Hello Firefox,
    I am having problems with my Firefox's image processor I believe. My web browser is fine but then a few minutes later I get some weird look on my page. It then just stays here and I can't fix it. When I go to Yahoo all the links and images do not look normal. I really cannot explain this and wish I could send a picture instead. When I go to the Log in page for Facebook I do not see the image of the small faces networking around the world. It's blank and the links are widely spread apart. With YouTube the page is also distorted. Nothing is arranged properly. I can watch videos. However when I go to someone's profile or a playlist videos cannot play or show up. It says I need to update my Java player and it is already updated. It still happens when I uninstall and re install back. I was only able to fix this problem by uninstalling everything related to Firefox. I do not know how to solve this any other way. I don't like it when all my information is lost such as saved passwords and bookmarks. If there is any way to solve this thanks. I don't want to uninstall this again.

    Your above posted list of installed plugins doesn't show the Flash plugin for Firefox.<br />
    See [[Managing the Flash plugin]] and [[Installing the Flash plugin]]
    You can check the Adobe welcome and test page: http://www.adobe.com/software/flash/about/
    You can use this manual download link:
    *http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller

  • Problem with java and javaw

    Hi,
    In running the following simple code, I have gotten different results using java and javaw.
    public class Test {
    public Test() {
    public static void main(String[] args) {
    int x =4;
    System.out.println("The value is "+ ((x > 5)?6.0:4));
    System.out.println("The value is "+ ((false)?6.0:4));
    System.out.println("The value is "+ ((true)?99:9.9));
    Using java, I get the following results:
    The value is 4.0
    The value is 4.0
    The value is 99.0
    But using javaw, I get the following results:
    The value is 4.0
    The value is 4
    The value is 99
    Any ideas why this is so?
    Thanks for any help.
    Gilbert

    I used JBuilder to run the following code and Jbuilder uses javaw.
    By the way, the correct answer is the one using java right?

  • I just ran a software update for Java and MacBook Pro SMC, now my Mini Display Port to HDMI TV is not working. The TV is flickering. The Mac Display is fine.

    I was just watching / streaming TV off Safari on my actual TV.
    I'm using a Mini-Display Port to HDMI cable for the connection to the external display.
    Software update popped-up and said there was an update for Java and for SMC.
    I ran the update and upon the computer restarting, my external display (my TV) is no longer working. It is now flickering.
    It won't work in Mirroring or set up as an extended display.
    I've reset SMC / PRAM / Safe Mode / Even restored from a Time Machine backup (From before the updates were done).
    What could it be?!

    I keep saying this over and over, in the hope that people who do a search will find it.  Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there.  The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple.  They're expensive, but they work perfectly.
    My guess is that you bought a cheap MDP to HDMI cable, or have a defective one.  From my reading of these boards over the past few months, cheap cables have a high failure rate.  And the regular priced ones have only a slightly less of one.  Try a new one.  Make sure you do not damage the Thunderbolt port.

  • [Java and all else] How do you document DB design?

    Hello,
    Although most of the technical choices are explicit in SQL (UniqueKey & ForeignKey constraints, indexes,...), the semantics of the data columns and their constraints seem better served as plain human-readable comments ("ID column: identifies the plane copy; 6 figures are enough as we don't expect to sell more than 1 million planes in a foreseeable future...").
    In my current system, (EJB-based, but the DB schema is not created by the JPA-compliant ORM, but via SQL scripts), I see the following ways to write and maintain this documentation:
    - SQL comments in the schema creation and patch scripts
    - Javadoc comments in the Java source of the Entity classes.
    - UML notes in UML diagrams(1)
    - external "Architecture and design" document.
    All 4 of them are used, sometimes inconsistently, for various parts of the design choices; I mean, the docs do not contradict themselves (not yet, but it's a mere question of time), but some tables are commented in SQL scripts, others are in design docs, and the details for some columns are in entity javadocs. Although each developer may find it handier to "write" the doc via his preferred medium, it becomes increasingly difficult to "maintain" theoverall documentation.
    Our current situation is that most of the project team members are Java developers, so it would probably be better accepted and served if we standardized that we document DB tables and columns in Java source, but I am worried that:
    - someone else pouring over our DB (ex: DBA helping us to optimize things, or other team developping a data-mining tool to leverage the historical data in DB) may not be as comfortable with Java
    - this may not cover all design choices of the DB schema:
    - - - - first, although that is the case currently, in the future there might not be a 100% 1-1 mapping between e.g. each entity class and a DB table. Maybe some columns will not need to be mapped anymore,...
    - - - - second, I fear some DB constructs are not amenable to Java counterparts; no accurate idea there, I'm not an SQL nor JPA expert, but I presume Indexes, table partitioning, tablespaces, for example (yes, the DBMS is Oracle :o) are not taken into account in JPA mapping.
    And if we document those choices at the SQL level (my preferred idea so far), this will gradually make the javadocs in the entities obsolete, or removed altogether, and that will make future maintenance of the Java source risky.
    How do you document your DB design in general?
    Do you have specific advices for my case?
    Thanks in advance,
    J.
    (1) Just for the record, here are a few posts that refer to modelling the DB in UML:
    [A post on this forum highlighting that UML 1.4 standardizes a notation for RDB modelling|http://forums.sun.com/thread.jspa?messageID=1383724#1383724]
    [A DB modelling tutorial|http://www.tomjewett.com/dbdesign/dbdesign.php] (not sure whether it leverages the standard mentioned above :o)
    P.S.: "Java and all else" as in, damn, I'd love to use the familiar JDC forums and people to discuss not only Java-related issues, but also [all other things that surround Java|http://forums.sun.com/thread.jspa?threadID=5422264&tstart=0] (other technologies, processes, people) and enable to make workable systems out of Java code.

    jduprez wrote:
    Thank you again.
    A couple more questions:
    2. Table, and proc dictionary maintained as one or more text files. Those files and schema are all in source control.Do you mean, a proprietary text format (a la tabledesign.txt), or +.sql+ source files? Again, you seem to suggest the scehma info is present in two locations.I didn't say two locations unless you meant files. Then yes.Yes I meant two files. I trust the team to get the doc file lagging a few revisions behind the SQL file, and to correct that I would have to include one more step in the review process (e.g. "review CM actions to check that the doc file is updated consistently with the SQL source").
    The tool I wrote would throw errors if the comment file didn't match the schema. And if comments were not provided. That of course doesn't stop someone from documenting a table with "a table".
    You can of course keep the addtional info as special comments in the SQL, but when I did this, and even in retrospect, it seems better and perhaps easier to keep them seperate. I have done special comments in SQL before and it seems a bit of a kluge but you do have the single source. But in that case I was the only one maintaining it too.What do you mean by "special"?For code generation I have a schema file with the following (pseudo sql.)
        create mytable
           mytable_id int,
           column_foo varchar(10);
           column_fum varchar(20)
            -- Query: for_a_query (column_foo, column_fum)
        )The generator consumes the schema and generates the standard CRUD which would include a query based on the primary key.
    The above comment is used to provide an additional query where the proc is named 'for_a_query' (munged with table name) and takes two parameters (column_foo, column_fum) whose type/name matches those of the table.
    If we don't try to generate a browseable HTML out of the schema (although the idea is appealing, I don't have the resource to make such a tool), do you see anything kludgy in maintaining SQL comments interpersed within DDL code?
    Of course that is doable.

  • Can someone pleas tell me about abap, java and xslt mappings

    Hi,
    can someone please tell me about abap, java and xslt mappings.
    Thanks,
    Bernard.

    HI,
    JAVA mapping
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping sample code for java mapping blog=/pub/wlg/4143 tutorial sax and dom
    ABAP mapping
    ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
    You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
    refer step by step guides for ABAP Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    ABAP Mapping
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Re: Performance of mappings (JAVA, XSLT, ABAP)
    XSLT Mapping
    XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Steps required for developing XSLT Mapping
    u2022 Create a source data type and a target data type
    u2022 Create Message types for the source and target data types.
    u2022 Create Message Interfaces includes Inbound Message interface and Outbound Message interface.
    u2022 XSLT Mapping does not require creation of Message mapping, so donu2019t create any Message mapping.
    u2022 Create an .XSL file which converts source data type into target data type.
    u2022 Zip that .xsl file and import it into Integration Repository under Imported Archives.
    u2022 In Interface Mapping choose mapping program as XSL and specify this zip program. (Through search help you will get XSL Mapping programs that you imported under Imported Archives, select your corresponding XSL Program)
    u2022 Test this mapping program by navigating to Test tab.
    By having look at above steps you can easily find out that this mapping is no where different from other mapping programs, here the challenging lies in creating an XSLT file. If you spend couple of minutes in studying XPATH tutorial you would be in ideal position to create an XSL Transformation (.xsl extension).
    If you still find difficulties in generating XSL Transformation, then you can make use of a tool u201CAltova MapForceu201D which will create XSL file for you.
    Steps for creating XSL file using this tool:
    1. Open the Alto MapForce, import the source .xml and .xsd file in it
    2. Similarly import the target .xml and .xsd in MapForce.
    3. These two data files should match with source and target data types in Integration Repository.
    4. Complete the graphical mapping using extensive list of XSLT functions available there.
    5. Save the mapping file.
    6. Click the XSLT tab. You will have the entire xslt logic there.
    7. Copy that content and save it as .xsl file.
    8. Zip above .xsl file and import the same into IR under Imported Archives.
    Hope this clears your doubts
    Thanks
    Saiyog

  • Corrupt ? : Java and ABAP Trial Version on Linux - VMware Edition

    Has anyone been successfull in downloading / running the brand new testdrive "Netweaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition" ?
    I tried downloading it twice, but it appears the second file (part2.rar) is corrupt.
    unpacking gives a CRC error on file 'SLES10SP1_Test_Drive(2)-s003.vmdk.
    Thanks & Best regards,
    Jeroen Engelen
    SAP Netweaver Technology consultant

    Hello all,
    You have to follow instruction on this side>
    http://www.novell.com/documentation/sles10/esd/ii_sap_testdrive_sles10sp1_vmware1.html
    YOu need to download
    part1 > which is soft from NOvell called
    SAP Test Drive "SLES10SP1VSAP.rar"
    Maybe this link help you "http://download.novell.com/index.jsp?product_id=&search=Search&families=2658&version=8161&date_range=&keywords=&sort_by=&x=14&y=7
    After donwload from sdn part two
    SAP NetWeaver 7.0 - Java and ABAP Trial Version on Linux - VMware Edition
    from sdn Downloads.
    YOu need to use VMWARE soft to start up SLES 10 (part1) and after that use SLES to start up SAP.
    But here I have problem I can not login to SLES as I don't know passwrod, I was trying to found it at novell web site or SAP without any sucess.
    So at this point I am stuck
    Here is the same qeustion from Jim Jiang  and me
    what is user name  and password for SLES10 SP1 SAP Version
    Hope this give you overview what needs to be done, to start up Trial SAP version
    Peter Nechala

  • Error while creating connection between Java and ABAP

    Experts
    I am getting the following error message when I am trying to test the connection between JAVA and ABAP systems.
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (s09f71v06.svr.bankone.net:8100)
    5. The host name s09f71v06.svr.bankone.net was resolved successfully.
    6. The server s09f71v06.svr.bankone.net *could not be pinged* successfully.
    I have JAVA and ABAP on the same system. I am trying to establish a connection. I have checked all the settings and they looks fine. I have also pinged from other system to this server and the Ping works fine.
    Please do let m eknow where do I need to check for the errros or logs for the above error message.
    Appreciate your quick help.
    Mahesh

    Check the relevant services are test are active on the Backend system through SICF trransaction.
    Also make sure that default icm services are running.See note 517484.
    More important the connector test in the portal system should work properly,recheck the WAS path etc are correct.
    Regards
    Ajay

  • Communicate link between Java and ABAP Stack for https

    I have configured https in both the java and abap stacks (we have a double stack configuration).  Due to our future configuration I have changed the hostnames to fully qualified hostnames per SAP instructions. 
    The question I have is does anyone know what RFC destinations or JCo settings I need to change to make https complete?
    I have the problem where when I fire off the Integration Builder from within the ABAP stack (SXMB_IFR) I get a straight hostname (no domain name).  Where is this configured?  Any help is appreciated..

    Check the exchange profile (Administratio tab in /rep/start/index.jsp page; you will have to enter it manually since it is throwing error from SXMB_IFR).
    Regards,
    Henrique.

Maybe you are looking for

  • How hard would it be to convert K3b into GTK?

    i set up these nice fast systems, only to have to install k3b because its the only program i have found that can burn mp3 discs, audio cds, as well as dvd's.  Is their a way to take the code, and make it gtk?  I imagine its tough since it hasnt been

  • Creating UserMembersRule with conditions on the value of resource attribute

    Hi all. I am trying to create a UserMembersRule to be used for provisioning an Organization. This rule should select users with a given value for an attribute mapped in a distant Resource. For instance, it would select all users with "typeTest = test

  • Facebook notification and emails

    i just recieved the motorola droid 2 today. i previously had the motorola droid. since i have gotten the phone i have not recieved any email notifications for comments and or facebook notifications on the phone for any comments. anyone have any sugge

  • Sony HDR-HC3 to FCP to Color to FCP to Mac Mini

    Hi, My objective is to play our edited family videos using our Mac Mini(2.0 GHz Core 2) on a Sony 52" LCD at full 1080 resolution. The video is stored on a Firewire attached 1 TB LaCie external disk. I use a Sony HDR-HC3 video camera (HDV 1440x1080i

  • Can I really only use a CD once?

    I'm a real newbie, so bear with me. I just copied a file to a new cd then ejected it. When I put the cd back in to copy another file I got the message "The item "contacts" could not be moved because "untitled cd" cannot be modified." Can I really onl