input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testConvert ( ) { java . lang . String name = "DutyN" ; java . lang . String abbrName = "AN" ; org . lnu . is . domain . employee . status . EmployeeStatus source = new org . lnu . is . domain . employee . status . EmployeeStatus ( ) ; source . setName ( name ) ; source . setAbbrName ( abbrName ) ; org . lnu . is . res...
org . junit . Assert . assertEquals ( expected , actual )
testIndexSize ( ) { final com . persistit . Buffer b1 = getABuffer ( ) ; try { final com . persistit . FastIndex fi = b1 . getFastIndex ( ) ; final int expectedSize = ( 16384 - ( Buffer . HEADER_SIZE ) ) / ( Buffer . MAX_KEY_RATIO ) ; "<AssertPlaceHolder>" ; } finally { b1 . release ( ) ; } } size ( ) { return _findexE...
org . junit . Assert . assertEquals ( ( expectedSize + 1 ) , fi . size ( ) )
testSubtractFromSetWithEOF ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 10 , 20 ) ; s . add ( Token . EOF ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 12 , 15 ) ; java . lang . String e...
org . junit . Assert . assertEquals ( expecting , result )
testSimpleJob ( ) { "<AssertPlaceHolder>" ; org . quartz . JobDetail jobDetail = org . quartz . JobBuilder . newJob ( org . joice . schedule . test . job . SimpleJob . class ) . withIdentity ( "simple-cron-job" , "quartz-test" ) . usingJobData ( "startTime" , java . lang . System . currentTimeMillis ( ) ) . build ( ) ;...
org . junit . Assert . assertNotNull ( scheduler )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . social . kernel . model . SocialRequest missingSocialRequest = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . lifera...
org . junit . Assert . assertNull ( missingSocialRequest )
getMostPopularAuthorsTest ( ) { java . util . Map < java . lang . String , java . lang . Integer > map = new java . util . HashMap ( ) ; map . put ( "Herbert<sp>Schildt" , 5 ) ; map . put ( "Mike<sp>McGrath" , 3 ) ; map . put ( "Kathy<sp>Sierra" , 2 ) ; map . put ( "Bruce<sp>Eckel" , 1 ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertEquals ( map , service . getMostPopularAuthors ( ) )
ignoreNonRules ( ) { org . junit . runner . Result result = org . junit . runner . JUnitCore . runClasses ( org . junit . tests . experimental . rules . MethodRulesTest . NoRulesTest . class ) ; "<AssertPlaceHolder>" ; } getFailureCount ( ) { return failures . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , result . getFailureCount ( ) )
phredOr_should_be_exact_for_single_score ( ) { "<AssertPlaceHolder>" ; } phredOr ( double [ ] ) { assert ( phredScore . length ) > 0 ; double resultPhred = phredScore [ 0 ] ; for ( int i = 1 ; i < ( phredScore . length ) ; i ++ ) { resultPhred = au . edu . wehi . idsv . util . MathUtil . prToPhred ( ( ( ( au . edu . we...
org . junit . Assert . assertEquals ( 5 , au . edu . wehi . idsv . util . MathUtil . phredOr ( 5 ) , 0 )
testEvaluate ( ) { org . apache . ambari . server . collections . Predicate mockPredicate1 = createStrictMock ( org . apache . ambari . server . collections . Predicate . class ) ; expect ( mockPredicate1 . evaluate ( "context" ) ) . andReturn ( true ) . times ( 1 ) ; expect ( mockPredicate1 . evaluate ( "context" ) ) ...
org . junit . Assert . assertArrayEquals ( new org . apache . ambari . server . collections . Predicate [ ] { mockPredicate1 , mockPredicate2 } , predicate . getPredicates ( ) )
testPresenter ( ) { "<AssertPlaceHolder>" ; } presenter ( ) { return presenter ; }
org . junit . Assert . assertEquals ( presenter , page . presenter ( ) )
shouldGetEmailByCode ( ) { java . lang . String code = com . codenjoy . dojo . services . dao . RegistrationTest . service . register ( "user" , "email" , "name" , "pass" , "data" ) ; java . lang . String email = com . codenjoy . dojo . services . dao . RegistrationTest . service . getIdByCode ( code ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( "user" , email )
testTransformation ( ) { java . lang . ClassLoader classLoader = getClass ( ) . getClassLoader ( ) ; java . io . File baseDir = new java . io . File ( classLoader . getResource ( "BibTeX2MODSTransformerTest" ) . getFile ( ) ) ; int numTests = ( baseDir . list ( ) . length ) / 2 ; for ( int i = 1 ; i <= numTests ; i ++ ...
org . junit . Assert . assertEquals ( message , expected , result )
uniqueResult ( ) { org . hibernate . Session session = sessionFactory . openSession ( ) ; io . robe . hibernate . criteria . api . Criteria < io . robe . hibernate . test . entity . User > criteria = io . robe . hibernate . criteria . api . Criteria . createCriteria ( io . robe . hibernate . test . entity . User . clas...
org . junit . Assert . assertEquals ( expectedResult , expectedResult )
testTreatCollection ( ) { try ( org . babyfish . persistence . XEntityManager entityManager = org . babyfish . test . hibernate . model . contravariance . ContravarianceJPATest . entityManagerFactory . createEntityManager ( ) ) { org . babyfish . persistence . criteria . XCriteriaBuilder cb = entityManager . getCriteri...
org . junit . Assert . assertEquals ( 1 , containers . size ( ) )
testGetMessageAnnotationWhenMessageHasAnnotationsMap ( ) { java . util . Map < org . apache . qpid . proton . amqp . Symbol , java . lang . Object > messageAnnotationsMap = new java . util . HashMap < org . apache . qpid . proton . amqp . Symbol , java . lang . Object > ( ) ; messageAnnotationsMap . put ( org . apache ...
org . junit . Assert . assertNotNull ( org . apache . activemq . transport . amqp . message . AmqpMessageSupport . getMessageAnnotation ( "x-opt-test" , message ) )
testGetMean ( ) { final double [ ] mu = new double [ ] { - 1.5 , 2 } ; final double [ ] [ ] sigma = new double [ ] [ ] { new double [ ] { 2 , - 1.1 } , new double [ ] { - 1.1 , 2 } } ; final org . apache . commons . math3 . distribution . MultivariateNormalDistribution d = new org . apache . commons . math3 . distribut...
org . junit . Assert . assertEquals ( mu [ i ] , m [ i ] , 0 )
testGetDefaultCharset ( ) { "<AssertPlaceHolder>" ; } getDefaultCharset ( ) { return java . nio . charset . Charset . defaultCharset ( ) ; }
org . junit . Assert . assertEquals ( com . cloud . utils . StringUtils . getDefaultCharset ( ) , java . nio . charset . Charset . defaultCharset ( ) )
testOffsetInsideInstancesWithInvalidPrefix ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app1" , "initial.instances" , 61 ) ; couple . text += "pop" ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . RoboconfCompletionProposal > proposal...
org . junit . Assert . assertEquals ( 0 , proposals . size ( ) )
shouldFailIfAPermissionIsRequiredOnAllContextsButOnlyGrantedToUserOnASpecificContext ( ) { ch . puzzle . itc . mobiliar . business . security . control . ResourceTypeEntity resourceType = new ch . puzzle . itc . mobiliar . business . integration . entity . util . ResourceTypeEntityBuilder ( ) . id ( 7 ) . build ( ) ; c...
org . junit . Assert . assertFalse ( result )
functionWithMapEntry ( ) { java . util . function . Predicate < Cache . Entry < java . lang . String , java . lang . String > > predicate = this . cut . createFromNashornScript ( "function<sp>test(i){return<sp>i.key.endsWith('duke');}" ) ; boolean result = predicate . test ( new Cache . Entry < java . lang . String , j...
org . junit . Assert . assertTrue ( result )
testOnRenamedOldNameEqualsDisplayName ( ) { hudson . model . DisplayNameListener listener = new hudson . model . DisplayNameListener ( ) ; final java . lang . String oldName = "old<sp>job<sp>name" ; final java . lang . String newName = "new<sp>job<sp>name" ; hudson . model . StubJob src = new hudson . model . StubJob (...
org . junit . Assert . assertEquals ( newName , src . getDisplayName ( ) )
testBug ( ) { java . io . File intfaceProps = createPropertyFile ( destDir . getAbsolutePath ( ) , INTF_PROPERTIES ) ; fillProperties ( intfProps , intfaceProps ) ; createTypeLibrary ( ( ( destDir . getAbsolutePath ( ) ) + "/TestTypeLibrary" ) , TEST_TYPE_LIBRARY , TEST_NAMESPACE ) ; setClassPath ( destDir . getAbsolut...
org . junit . Assert . assertTrue ( ( ( file . length ) == 0 ) )
should_return_a_list_without_null_elements ( ) { java . util . List < java . lang . String > c = org . fest . util . Lists . newArrayList ( "Frodo" , null , "Sam" , null ) ; java . util . List < java . lang . String > nonNull = org . fest . util . Iterables . nonNullElementsIn ( c ) ; "<AssertPlaceHolder>" ; } nonNullE...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "Frodo" , "Sam" } , nonNull . toArray ( ) )
testGetDefinition ( ) { org . apache . tiles . definition . dao . DefinitionDAO < java . util . Locale > dao = createMock ( org . apache . tiles . definition . dao . DefinitionDAO . class ) ; org . apache . tiles . locale . LocaleResolver localeResolver = createMock ( org . apache . tiles . locale . LocaleResolver . cl...
org . junit . Assert . assertEquals ( realDefinition , factory . getDefinition ( "myDefinition" , request ) )
configured_value_set_to_not_recognized ( ) { allowingConfigurationToReturn ( EditingObjectsConfiguration . EDIT_OBJECTS_KEY , "foobar" ) ; facetFactory . process ( new org . apache . isis . core . metamodel . facets . FacetFactory . ProcessClassContext ( org . apache . isis . core . metamodel . facets . object . domain...
org . junit . Assert . assertNull ( facet )
testMultipleSentenceRow ( ) { java . sql . ResultSet resultSetMock = mock ( java . sql . ResultSet . class ) ; when ( resultSetMock . next ( ) ) . thenReturn ( true ) . thenReturn ( false ) ; when ( resultSetMock . getString ( "line" ) ) . thenReturn ( "The<sp>quick<sp>brown<sp>fox.<sp>The<sp>lazy<sp>dog.<sp>Over<sp>a<...
org . junit . Assert . assertEquals ( 3 , cnt )
testHashCode ( ) { com . liferay . portal . fabric . netty . agent . NettyFabricAgentStub nettyFabricAgentStub = new com . liferay . portal . fabric . netty . agent . NettyFabricAgentStub ( _embeddedChannel , new com . liferay . portal . fabric . repository . MockRepository < io . netty . channel . Channel > ( ) , java...
org . junit . Assert . assertEquals ( _embeddedChannel . hashCode ( ) , nettyFabricAgentStub . hashCode ( ) )
testAccept ( ) { com . thoughtworks . qdox . model . expression . ExpressionVisitor visitor = mock ( com . thoughtworks . qdox . model . expression . ExpressionVisitor . class ) ; com . thoughtworks . qdox . model . expression . PreDecrement expr = new com . thoughtworks . qdox . model . expression . PreDecrement ( nul...
org . junit . Assert . assertSame ( expr . accept ( visitor ) , visitResult )
testDeleteGroup ( ) { createGroup ( "deleteMe" ) ; java . lang . String xml = sendRequest ( org . opennms . web . rest . v1 . GET , "/groups" , 200 ) ; "<AssertPlaceHolder>" ; sendRequest ( org . opennms . web . rest . v1 . DELETE , "/groups/idontexist" , 404 ) ; sendRequest ( org . opennms . web . rest . v1 . DELETE ,...
org . junit . Assert . assertTrue ( xml . contains ( "deleteMe" ) )
shouldRollbackInsertedAuthor ( ) { try { org . apache . ibatis . session . SqlSessionManagerTest . manager . startManagedSession ( ) ; org . apache . ibatis . domain . blog . mappers . AuthorMapper mapper = org . apache . ibatis . session . SqlSessionManagerTest . manager . getMapper ( org . apache . ibatis . domain . ...
org . junit . Assert . assertNull ( actual )
shouldCombineAllPodSecretEnvVars ( ) { org . csanchez . jenkins . plugins . kubernetes . PodTemplate template1 = new org . csanchez . jenkins . plugins . kubernetes . PodTemplate ( ) ; org . csanchez . jenkins . plugins . kubernetes . model . SecretEnvVar podSecretEnvVar1 = new org . csanchez . jenkins . plugins . kube...
org . junit . Assert . assertThat ( result . getEnvVars ( ) , contains ( podSecretEnvVar1 , podSecretEnvVar2 , podSecretEnvVar3 ) )
ext_1 ( ) { java . lang . String fn1 = "file.txt" ; java . lang . String fn2 = org . apache . jena . atlas . io . IO . filenameNoCompression ( fn1 ) ; "<AssertPlaceHolder>" ; } filenameNoCompression ( java . lang . String ) { if ( org . apache . commons . io . FilenameUtils . isExtension ( filename , org . apache . jen...
org . junit . Assert . assertEquals ( fn1 , fn2 )
read ( ) { org . syncope . client . to . ResourceTO actual = restTemplate . getForObject ( ( ( BASE_URL ) + "/resource/read/{resourceName}.json" ) , org . syncope . client . to . ResourceTO . class , "resource-testdb" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( actual )
arbitraryPropertySource ( ) { com . pholser . util . properties . PropertySource source = new com . pholser . util . properties . PropertySource ( ) { @ com . pholser . util . properties . Override public java . lang . Object propertyFor ( com . pholser . util . properties . BoundProperty key ) { return null ; } @ com ...
org . junit . Assert . assertThat ( asString , containsString ( "qwerty" ) )
test ( ) { try { connect ( ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ( "connect<sp>fail<sp>:<sp>" + ( e . getMessage ( ) ) ) ) ; } org . zkoss . zul . Textbox textbox = new org . zkoss . zul . Textbox ( ) ; java . lang . Integer i = null ; try { org . zkoss . zk . ui . sys . PropertyAcce...
org . junit . Assert . assertTrue ( true )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . document . library . file . rank . model . DLFileRank missingDLFileRank = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return c...
org . junit . Assert . assertNull ( missingDLFileRank )
testHead ( ) { org . jboss . resteasy . rxjava2 . ObservableRxInvoker invoker = org . jboss . resteasy . test . rx . rxjava2 . Rx2ObservableTest . client . target ( org . jboss . resteasy . test . rx . rxjava2 . Rx2ObservableTest . generateURL ( "/head/string" ) ) . request ( ) . rx ( org . jboss . resteasy . rxjava2 ....
org . junit . Assert . assertNull ( org . jboss . resteasy . test . rx . rxjava2 . Rx2ObservableTest . value . get ( ) )
testDoBuildReturnNull ( ) { when ( context . getIndex ( ) . getEdge ( org . kie . workbench . common . stunner . bpmn . backend . service . marshaller . json . builder . EdgeBuilderImplTest . EDGE_ID ) ) . thenReturn ( edge ) ; edgeBuilder . nodeId ( org . kie . workbench . common . stunner . bpmn . backend . service ....
org . junit . Assert . assertEquals ( edge1 , null )
testZipLongest_boundary ( ) { for ( java . lang . String expr : com . google . common . collect . ImmutableList . of ( "ZIP_LONGEST()" , "ZIP_LONGEST(<sp>null,<sp>null<sp>)" , "ZIP_LONGEST(<sp>[],<sp>null<sp>)" , "ZIP_LONGEST(<sp>[],<sp>[]<sp>)" , "ZIP_LONGEST(<sp>null,<sp>[]<sp>)" ) ) { java . util . List < java . uti...
org . junit . Assert . assertEquals ( 0 , o . size ( ) )
testMergeExtraAttributes ( ) { project . setProperty ( "1.0" 2 , "test/java/org/apache/ivy/ant/ivy-multiconf.xml" ) ; org . apache . ivy . ant . IvyResolve res = new org . apache . ivy . ant . IvyResolve ( ) ; res . setProject ( project ) ; res . execute ( ) ; org . apache . ivy . ant . IvyPublish pubParent = new org ....
org . junit . Assert . assertTrue ( published . exists ( ) )
toJSON_xIsSet_ItemSerializedWithXAndNulls ( ) { com . vaadin . addon . charts . model . DataSeriesItem item = new com . vaadin . addon . charts . model . DataSeriesItem ( ) ; item . setX ( 2 ) ; com . vaadin . addon . charts . model . DataSeries series = new com . vaadin . addon . charts . model . DataSeries ( ) ; seri...
org . junit . Assert . assertEquals ( expected , toJSON ( series ) )
testSelectWithMatchingSummaries ( ) { strategy . updateHubSummaries ( asList ( ru . qatools . selenograph . gridrouter . SmartHostSelectionStrategyTest . SUMMARY_1 , ru . qatools . selenograph . gridrouter . SmartHostSelectionStrategyTest . SUMMARY_2 ) , java . lang . System . currentTimeMillis ( ) ) ; ru . qatools . g...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( ru . qatools . selenograph . gridrouter . SmartHostSelectionStrategyTest . HOST_2 ) ) )
testRegister_component_nimbus_notPresent ( ) { com . hortonworks . streamline . streams . cluster . catalog . Cluster cluster = getTestCluster ( 1L ) ; com . hortonworks . streamline . streams . cluster . register . impl . StormServiceRegistrar registrar = initializeServiceRegistrar ( ) ; try { com . hortonworks . stre...
org . junit . Assert . assertNull ( stormService )
notEqualsByPackagingValue ( ) { final java . lang . String groupId = "groupId" ; final java . lang . String artifactId = "artifactId" ; final java . lang . String version = "version" ; final org . jboss . shrinkwrap . resolver . api . maven . PackagingType packaging = org . jboss . shrinkwrap . resolver . api . maven ....
org . junit . Assert . assertFalse ( coordinate1 . equals ( coordinate2 ) )
two_$this_elem_match_returns_false_when_no_values_in_array_match ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field8.nf1.$this.$this.nnf4','elemMatch':{'field':'elemf3','op':'>','rvalue':50}}" ) ; com . redhat . ...
org . junit . Assert . assertFalse ( context . getResult ( ) )
testToString ( ) { org . xmpp . packet . JID jid = new org . xmpp . packet . JID ( "user@thing.com" ) ; java . lang . String type = "posts" ; java . lang . String expected = "/user/user@thing.com/posts" ; org . buddycloud . channelserver . channel . ChannelNodeRef ref = new org . buddycloud . channelserver . channel . ...
org . junit . Assert . assertEquals ( expected , ref . toString ( ) )
get_Existing_NotSameKey ( ) { long now = java . lang . System . currentTimeMillis ( ) ; java . util . Date existingKey = new java . util . Date ( now ) ; java . util . Date existingValue = new java . util . Date ( now ) ; cache . put ( existingKey , existingValue ) ; existingValue . setTime ( ( now + 1 ) ) ; "<AssertPl...
org . junit . Assert . assertSame ( existingValue , cache . get ( new java . util . Date ( now ) ) )
sqlTempTable ( ) { java . lang . String defaultDbName = "default" ; java . lang . String tempTblName = "sqltemptbl" ; org . apache . hive . hcatalog . listener . TestDbNotificationListener . driver . run ( ( ( "create<sp>temporary<sp>table<sp>" + tempTblName ) + "<sp>(c<sp>int)" ) ) ; org . apache . hive . hcatalog . l...
org . junit . Assert . assertEquals ( 0 , rsp . getEventsSize ( ) )
isBESAvalible_false ( ) { doThrow ( new org . oscm . app . v2_0 . exceptions . APPlatformException ( "" , new java . net . ConnectException ( ) ) ) . when ( besDAO ) . getBESWebService ( eq ( org . oscm . intf . IdentityService . class ) , any ( org . oscm . app . domain . ServiceInstance . class ) ) ; boolean result =...
org . junit . Assert . assertFalse ( result )
testScanBatchChecked ( ) { java . lang . String exceptionDesc = "next-allocate" ; final java . lang . String controls = org . apache . drill . exec . testing . Controls . newBuilder ( ) . addException ( org . apache . drill . exec . physical . impl . ScanBatch . class , exceptionDesc , org . apache . drill . exec . exc...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( exceptionDesc ) )
testSubscribeAllUsersWithEmptySubscribers ( ) { java . util . List < java . lang . String > currentSubscribers = subscriptionDao . getAllSubscribers ( threadId , SubscriptionObjectType . THREAD ) ; subscriptionDao . subscribeAllUsers ( new java . util . HashSet < java . lang . String > ( 0 ) , threadId , SubscriptionOb...
org . junit . Assert . assertEquals ( currentSubscribers , subscriptionDao . getAllSubscribers ( threadId , SubscriptionObjectType . THREAD ) )
testDeserializeStringToSignedOptionalLong ( ) { long expected = 123L ; long result = getMapper ( ) . readValue ( "{\"someLong\":\"123\"}" , discord4j . common . json . OptionalLongPojo . class ) . someLong . getAsLong ( ) ; "<AssertPlaceHolder>" ; } getMapper ( ) { return new com . fasterxml . jackson . databind . Obje...
org . junit . Assert . assertEquals ( expected , result )
testPollOut ( ) { org . zeromq . api . Socket server = context . buildSocket ( SocketType . REP ) . bind ( "inproc://repSocket" ) ; org . zeromq . api . Socket requester = context . buildSocket ( SocketType . REQ ) . connect ( "inproc://repSocket" ) ; org . zeromq . api . Poller testClass = context . buildPoller ( ) . ...
org . junit . Assert . assertArrayEquals ( "hello" . getBytes ( ) , message )
testGetSplits ( ) { org . apache . mahout . text . doc . SingleFieldDocument doc1 = new org . apache . mahout . text . doc . SingleFieldDocument ( "1" , "This<sp>is<sp>simple<sp>document<sp>1" ) ; org . apache . mahout . text . doc . SingleFieldDocument doc2 = new org . apache . mahout . text . doc . SingleFieldDocumen...
org . junit . Assert . assertEquals ( 3 , splits . size ( ) )
getServiceParameterList_nonconfigurableParameter_unconfigurable_Product ( ) { parameterDefinitions . add ( createParameterDefinition ( 1003L , ParameterModificationType . STANDARD , "irrelative<sp>param" , false ) ) ; java . util . List < org . oscm . provisioning . data . ServiceParameter > parameterList = org . oscm ...
org . junit . Assert . assertEquals ( 3 , parameterList . size ( ) )
testMalFormedExpression2 ( ) { final io . vertigo . commons . peg . PegResult < java . lang . String > cursor = io . vertigo . dynamo . environment . plugins . loaders . kpr . definition . DslPackageDeclarationRuleTest . PACKAGE_DECLARATION_RULE . parse ( "<sp>packageio.vertigo" , 0 ) ; "<AssertPlaceHolder>" ; } parse ...
org . junit . Assert . assertNotNull ( cursor )
testCreateObjectiveSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . cdt . ObjectiveSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . cdt . builder . CDTBuilderFactory . createObjectiveSectionBuilder ( ) ; org . open...
org . junit . Assert . assertNotNull ( section )
checkReadWriteExtended ( ) { mockUtcDateTimeZone ( ) ; final java . lang . String originalFile = "vector/complex/extended.json" ; final java . lang . String newTable = "TestExtendedTypes/newjson" ; try { testNoResult ( java . lang . String . format ( "ALTER<sp>SESSION<sp>SET<sp>`%s`<sp>=<sp>'json'" , ExecConstants . OU...
org . junit . Assert . assertEquals ( new java . lang . String ( originalData ) , new java . lang . String ( newData ) )
testSpecifyPathCorrect ( ) { org . springframework . cloud . gcp . storage . GoogleStorageResource googleStorageResource = new org . springframework . cloud . gcp . storage . GoogleStorageResource ( this . storage , "gs://test-spring/images/spring.png" , false ) ; "<AssertPlaceHolder>" ; } exists ( ) { try { return isB...
org . junit . Assert . assertTrue ( googleStorageResource . exists ( ) )
testAppendQueryParams ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; java . lang . String targetUri = "/test/path" ; org . mockito . Mockito . when ( request . getCharacterEncoding ( ) ) . thenReturn ( null ) ; java . ...
org . junit . Assert . assertEquals ( entry . getValue ( ) , uri )
testVraagOpKandidaatVaderMetHuwelijkNaGeboorteEnVoorGeboorte ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView moeder = bouwMoeder ( 20050505 , 20111111 , NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE_STRING , Geslachtsaanduiding . MAN ) ; final java . util . List < java . lang . I...
org . junit . Assert . assertEquals ( 1 , kandidaten . size ( ) )
testBadConfig ( ) { java . util . Map < java . lang . String , java . lang . Object > stormConf = new java . util . HashMap ( ) ; stormConf . put ( "fetchInterval.DODGYSTATUS.testKey=someValue" , 360 ) ; com . digitalpebble . stormcrawler . persistence . DefaultScheduler scheduler = new com . digitalpebble . stormcrawl...
org . junit . Assert . assertTrue ( exception )
testDoGetContentCreatorError ( ) { java . lang . Throwable mockThrowable = mock ( org . pentaho . platform . web . http . api . resources . RuntimeException . class ) ; doThrow ( mockThrowable ) . when ( fileResource . fileService ) . doGetContentCreator ( org . pentaho . platform . web . http . api . resources . FileR...
org . junit . Assert . assertNull ( testDto )
testBuildWithDisabledSecuirtyConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . studyplan . cycle . StudyPlanCycle context = new org . lnu . is . domain . studyplan . cycle . StudyPlanCycle ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>StudyPlanCycle<sp>e<sp>WHERE<sp>e.status=:sta...
org . junit . Assert . assertEquals ( expected , actualQuery )
testSimpleWithDecimalsTrunc ( ) { org . apache . commons . math4 . geometry . euclidean . oned . Cartesian1D c = new org . apache . commons . math4 . geometry . euclidean . oned . Cartesian1D ( 1.232323232323 ) ; java . lang . String expected = ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323232323}" ; java . lang . Stri...
org . junit . Assert . assertEquals ( expected , actual )
whenReservingRangeOfIDs_ThenItShouldConflictWithAllIDsInThatRangeIncludingBoundaries ( ) { final com . b2international . index . Index store = com . b2international . index . Indexes . createIndex ( java . util . UUID . randomUUID ( ) . toString ( ) , new com . fasterxml . jackson . databind . ObjectMapper ( ) , new co...
org . junit . Assert . assertTrue ( range . includes ( identifier ) )
resolveWhenNoMap ( ) { com . xpn . xwiki . XWikiContext context = mock ( com . xpn . xwiki . XWikiContext . class ) ; com . xpn . xwiki . pdf . impl . PDFURIResolver resolver = new com . xpn . xwiki . pdf . impl . PDFURIResolver ( context ) ; javax . xml . transform . Source source = resolver . resolve ( "href" , "base...
org . junit . Assert . assertNull ( source )
getSingleResult_should_return_single_value_from_list_with_one_element ( ) { org . springframework . data . simpledb . query . SimpleDbQueryRunner runner = new org . springframework . data . simpledb . query . SimpleDbQueryRunner ( null , org . springframework . data . simpledb . query . SampleEntity . class , null ) ; ...
org . junit . Assert . assertNotNull ( result )
testGetStatus ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testSamePrefix ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = new org . nuxeo . ecm . core . api . impl . DocumentModelImpl ( "/" , "mediaDoc" , "SameMedia" ) ; doc . setPropertyValue ( "sameMedia:title" , "Media<sp>Title" ) ; java . lang . Object o1 = doc . getProperty ( "sameMedia:title" ) ; java . lang ....
org . junit . Assert . assertEquals ( o1 , o2 )
testAsInt8 ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createDate ( org . apache . tajo . datum . TestDateDatum . DATE ) ; org . apache . tajo . datum . Datum copy = org . apache . tajo . datum . DatumFactory . createDate ( ( ( int ) ( d . asInt8 ( ) ) ) ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( d , copy )
testDisposeWithJar ( ) { org . apache . flink . client . cli . CliFrontendSavepointTest . replaceStdOutAndStdErr ( ) ; final java . util . concurrent . CompletableFuture < java . lang . String > disposeSavepointFuture = new java . util . concurrent . CompletableFuture ( ) ; final org . apache . flink . client . cli . C...
org . junit . Assert . assertEquals ( disposePath , actualSavepointPath )
testMultiThread ( ) { java . util . Set < java . lang . String > totalSet = new java . util . HashSet < java . lang . String > ( ( ( threads ) * ( count ) ) ) ; java . util . List < java . util . Set < java . lang . String > > list = new java . util . ArrayList < java . util . Set < java . lang . String > > ( ) ; for (...
org . junit . Assert . assertTrue ( ( ( totalSet . size ( ) ) == ( ( threads ) * ( count ) ) ) )
isSet_withBlank ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , "" ) ; "<AssertPlaceHolder>" ; } isSet ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , "test" ) ; org . junit . Assert . assertThat ( org . sonatype . nexus . security ...
org . junit . Assert . assertThat ( org . sonatype . nexus . security . UserIdMdcHelper . isSet ( ) , org . hamcrest . Matchers . is ( false ) )
generateAllGuesses ( ) { int numberOfGuesses = 0 ; packt . java9 . by . example . mastermind . ColorManager manager = new packt . java9 . by . example . mastermind . ColorManager ( packt . java9 . by . example . mastermind . GeneralGuesserTest . NR_COLORS , Color :: new ) ; packt . java9 . by . example . mastermind . T...
org . junit . Assert . assertEquals ( ( ( ( 6 * 6 ) * 6 ) * 6 ) , numberOfGuesses )
testIndexOf_AfterDispose ( ) { org . eclipse . nebula . widgets . grid . GridItem [ ] items = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridItems ( grid , 1 , 10 ) ; items [ 2 ] . dispose ( ) ; "<AssertPlaceHolder>" ; } createGridItems ( org . eclipse . nebula . widgets . grid . Grid , int , int ) ...
org . junit . Assert . assertEquals ( 4 , items [ 0 ] . indexOf ( items [ 6 ] ) )
parseEmpty ( ) { java . math . BigDecimal expected = null ; io . robe . convert . xml . parsers . ParseBigDecimal parseBigDecimal = new io . robe . convert . xml . parsers . ParseBigDecimal ( ) ; java . math . BigDecimal actual = parseBigDecimal . parse ( io . robe . convert . xml . ParserUtil . getParser ( "<bigdec></...
org . junit . Assert . assertEquals ( expected , actual )
test ( ) { java . lang . String plaintext = "滚滚长江东逝水,浪花淘尽英雄。\r\n" + ( ( ( ( "是非成败转头空。\r\n" + "青山依旧在,几度夕阳红。\r\n" ) + "白发渔樵江渚上,惯看秋月春风。\r\n" ) + "一壶浊酒喜相逢。\r\n" ) + "" ) ; com . github . emailtohl . building . common . encryption . myrsa . Encipher encipher = new com . github . emailtohl . building . common . encryption . ...
org . junit . Assert . assertEquals ( plaintext , recovery )
test_UrlBuilder_WithMulipleQueries ( ) { java . lang . String baseURL = "http://www.fakex.com/course" ; java . util . Map < java . lang . String , java . lang . String > queryParams = new java . util . HashMap ( ) ; queryParams . put ( "search_query" , "mobile<sp>linux" ) ; queryParams . put ( "subject" , "Architecture...
org . junit . Assert . assertEquals ( expected , output )
testBuildInfoPrintedInJsonFormat ( ) { com . facebook . buck . cli . AuditModulesCommand . collectAndDumpModuleInformation ( console , moduleManager , true ) ; java . lang . String output = console . getTextWrittenToStdOut ( ) ; java . lang . String expected = com . google . common . io . Resources . toString ( com . g...
org . junit . Assert . assertThat ( output , org . hamcrest . Matchers . is ( equalToIgnoringPlatformNewlines ( expected ) ) )
decimalTypeTest ( ) { final org . opendaylight . yangtools . yang . model . util . type . BaseDecimalType baseDecimalType1 = ( ( org . opendaylight . yangtools . yang . model . util . type . BaseDecimalType ) ( org . opendaylight . yangtools . yang . model . util . type . BaseTypes . decimalTypeBuilder ( org . opendayl...
org . junit . Assert . assertEquals ( baseDecimalType1 . getFractionDigits ( ) , baseDecimalType2 . getFractionDigits ( ) )
testGetAltLoc ( ) { org . openscience . cdk . interfaces . IPDBAtom atom = ( ( org . openscience . cdk . interfaces . IPDBAtom ) ( newChemObject ( ) ) ) ; atom . setSymbol ( "C" ) ; atom . setAltLoc ( "123" ) ; "<AssertPlaceHolder>" ; } getAltLoc ( ) { return altLoc ; }
org . junit . Assert . assertEquals ( "123" , atom . getAltLoc ( ) )
deveObterAmbienteComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFRetornoInfoCancelamento retornoInfoCancelamento = new com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFRetornoInfoCancelamento ( ) ; final com . fincatto . documentof...
org . junit . Assert . assertEquals ( ambiente , retornoInfoCancelamento . getAmbiente ( ) )
testEquals11 ( ) { java . util . List < org . dresdenocl . modelinstancetype . types . IModelInstanceString > elements01 ; elements01 = new java . util . ArrayList < org . dresdenocl . modelinstancetype . types . IModelInstanceString > ( ) ; elements01 . add ( org . dresdenocl . modelinstancetype . types . base . Basis...
org . junit . Assert . assertFalse ( modelInstanceCollection01 . equals ( modelInstanceCollection02 ) )
testTraversalPathOrder ( ) { org . jboss . seam . exception . control . test . common . traversal . Exceptions . Exception1 exception = new org . jboss . seam . exception . control . test . common . traversal . Exceptions . Exception1 ( new org . jboss . seam . exception . control . test . common . traversal . Exceptio...
org . junit . Assert . assertArrayEquals ( expectedOrder , org . jboss . seam . exception . control . test . common . traversal . ExceptionHandler . getExecutionorder ( ) . toArray ( ) )
testVoerStapUitRootobjectIsLeeg ( ) { final nl . bzk . brp . model . bericht . kern . ActieBericht actieBericht = getOnderwerp ( ) . getAdministratieveHandeling ( ) . getHoofdActie ( ) ; actieBericht . setRootObject ( null ) ; final boolean stapResultaat = haalLeveringsautorisatieEnPartijGegevensOpStap . voerStapUit ( ...
org . junit . Assert . assertFalse ( stapResultaat )
testAllocateMultipleLedgers ( ) { java . lang . String allocationPath = "/" + ( runtime . getMethodName ( ) ) ; int numAllocators = 5 ; final org . apache . distributedlog . bk . LedgerAllocatorPool pool = new org . apache . distributedlog . bk . LedgerAllocatorPool ( allocationPath , numAllocators , dlConf , zkc , bkc...
org . junit . Assert . assertEquals ( numLedgers , allocatedLedgers . size ( ) )
testCreate ( ) { org . oscarehr . PMmodule . model . Vacancy entity = new org . oscarehr . PMmodule . model . Vacancy ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id ; }
org . junit . Assert . assertNotNull ( entity . getId ( ) )
abortTest ( ) { try ( java . sql . Connection connection = setConnection ( ) ) { try ( java . sql . Statement stmt = connection . createStatement ( ) ) { java . sql . SQLPermission sqlPermission = new java . sql . SQLPermission ( "callAbort" ) ; java . lang . SecurityManager securityManager = java . lang . System . get...
org . junit . Assert . assertTrue ( connection . isClosed ( ) )
shouldParseScriptWithCommentsAndWhitespace ( ) { java . lang . String script = "#<sp>Comment<sp>1\n" + ( ( ( "\t\n" + "<sp>#<sp>Comment<sp>2\n" ) + "\r\n" ) + "#<sp>Comment<sp>3\n" ) ; org . kaazing . k3po . lang . internal . parser . ScriptParserImpl parser = new org . kaazing . k3po . lang . internal . parser . Scrip...
org . junit . Assert . assertEquals ( expected , actual )
testHarmonicCentralityStream ( ) { org . neo4j . graphdb . Result result = org . neo4j . graphalgo . algo . EmptyGraphIntegrationTest . db . execute ( ( ( "CALL<sp>algo.closeness.harmonic.stream('',<sp>'',<sp>{graph:'" + ( graphImpl ) ) + "'})" ) ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( offset ) < ( nodeCou...
org . junit . Assert . assertFalse ( result . hasNext ( ) )
test_namespaceaware_catalog_valid_xml ( ) { org . switchyard . validate . Validator validator = getValidator ( "sw-config-xmlv-namespace-catalog.xml" ) ; java . lang . String source = "<import:person.2<sp>xmlns:import=\"switchyard-validate-test:import:1.0\"<sp>firstName=\'foo\'<sp>lastName=\'bar\'<sp>name=\'foo<sp>bar\...
org . junit . Assert . assertNull ( result . getDetail ( ) )
checksum ( ) { alluxio . client . file . FileSystemTestUtils . createByteFile ( mFileSystem , "/testFile" , WritePType . MUST_CACHE , 10 ) ; mFsShell . run ( "checksum" , "/testFile" ) ; java . lang . String str = mOutput . toString ( ) ; java . lang . String [ ] splitString = str . split ( "\\s+" ) ; byte [ ] data = a...
org . junit . Assert . assertEquals ( splitString [ 1 ] , expectedMd5 )
testValidateDifferentPropertyButSameStartsWithPath ( ) { org . hl7 . fhir . dstu3 . hapi . validation . EligibilityResponse fhirObj = new org . hl7 . fhir . dstu3 . hapi . validation . EligibilityResponse ( ) ; org . hl7 . fhir . dstu3 . model . EligibilityResponse . BenefitComponent benComp = fhirObj . addInsurance ( ...
org . junit . Assert . assertEquals ( 4 , result . getMessages ( ) . size ( ) )
testGetIRODSAccessObjectFactory ( ) { org . irods . jargon . core . pub . IRODSFileSystem irodsFileSystem = org . irods . jargon . core . pub . IRODSFileSystem . instance ( ) ; org . irods . jargon . core . pub . IRODSAccessObjectFactory irodsAccessObjectFactory = irodsFileSystem . getIRODSAccessObjectFactory ( ) ; "<A...
org . junit . Assert . assertNotNull ( irodsAccessObjectFactory )
testTwoIndexLargeQuery ( ) { final org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser1 = new org . eclipse . rdf4j . query . parser . sparql . SPARQLParser ( ) ; final org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser2 = new org . eclipse . rdf4j . query . parser . sparql . SPARQL...
org . junit . Assert . assertTrue ( set . equals ( qSet ) )
testGetImageInfoById ( ) { com . myjeeva . digitalocean . pojo . Image image = apiClient . getImageInfo ( imageId ) ; "<AssertPlaceHolder>" ; log . info ( image . toString ( ) ) ; } getImageInfo ( java . lang . String ) { checkBlankAndThrowError ( slug , "Missing<sp>required<sp>parameter<sp>-<sp>slug." ) ; java . lang ...
org . junit . Assert . assertNotNull ( image )
testInvalidTodo2 ( ) { com . hantsylabs . example . ee8 . bv . Todo todo = new com . hantsylabs . example . ee8 . bv . Todo ( ) ; java . util . Set < javax . validation . ConstraintViolation < com . hantsylabs . example . ee8 . bv . Todo > > violations = validator . validate ( todo , javax . validation . groups . Defau...
org . junit . Assert . assertTrue ( ( ( violations . size ( ) ) > 0 ) )
houdtRekeningMetGeldigheidToegangLeveringsautorisatie ( ) { toegangLeveringsAutorisatie . setDatumEinde ( nl . bzk . algemeenbrp . util . common . DatumUtil . gisteren ( ) ) ; java . util . Collection < nl . bzk . brp . beheer . service . selectie . SelectieTaakDTO > taken = service . filter ( java . util . Collections...
org . junit . Assert . assertThat ( taken . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
equalIfTagsAreEqual ( ) { com . ontology2 . bakemono . joins . TaggedTextItem k1 = new com . ontology2 . bakemono . joins . TaggedTextItem ( new org . apache . hadoop . io . Text ( "Doctor<sp>Funkenstein" ) , new org . apache . hadoop . io . VIntWritable ( 33550336 ) ) ; com . ontology2 . bakemono . joins . TaggedTextI...
org . junit . Assert . assertTrue ( k1 . equals ( k2 ) )