input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetType ( ) { de . mirkosertic . gameengine . event . ReadOnlyProperty < java . lang . String > theProperty = new de . mirkosertic . gameengine . event . ReadOnlyProperty ( java . lang . String . class , this , "property" , "default" ) ; "<AssertPlaceHolder>" ; } getType ( ) { return de . mirkosertic . gameengine ....
org . junit . Assert . assertSame ( java . lang . String . class , theProperty . getType ( ) )
testGeenGedeblokkeerdeMeldingen ( ) { final nl . bzk . brp . bijhouding . business . stappen . resultaat . Resultaat resultaat = stap . voerStapUit ( bericht ) ; "<AssertPlaceHolder>" ; } getMeldingen ( ) { return java . util . Collections . unmodifiableSet ( meldingen ) ; }
org . junit . Assert . assertTrue ( resultaat . getMeldingen ( ) . isEmpty ( ) )
testDecrypt_3 ( ) { final org . apache . shindig . gadgets . oauth2 . persistence . sample . NoOpEncrypter fixture = new org . apache . shindig . gadgets . oauth2 . persistence . sample . NoOpEncrypter ( ) ; final java . lang . String encryptedSecret = "" ; final byte [ ] bytes = fixture . decrypt ( encryptedSecret . g...
org . junit . Assert . assertEquals ( "" , result )
testFirst ( ) { final io . vertigo . app . config . AppConfig appConfig = io . vertigo . dynamo . environment . multi . MultiResourcesEnvironmentManagerTest . prepareDefaultAppConfigBuilder ( ) . addModule ( io . vertigo . app . config . ModuleConfig . builder ( "myApp" ) . addDefinitionProvider ( io . vertigo . app . ...
org . junit . Assert . assertNotNull ( doString )
testRowsCurrentRowUnboundedFollowingSortOnResult ( ) { java . lang . String sqlText = java . lang . String . format ( ( "<sp>100<sp>|<sp>3<sp>|<sp>55000<sp>|293000<sp>|\n" 7 + ( "<sp>10<sp>|<sp>1<sp>|<sp>50000<sp>|436000<sp>|\n" 0 + "and<sp>unbounded<sp>following)<sp>from<sp>%s<sp>--SPLICE-PROPERTIES<sp>useSpark<sp>=<s...
org . junit . Assert . assertEquals ( ( ( "<sp>100<sp>|<sp>3<sp>|<sp>55000<sp>|293000<sp>|\n" 9 + sqlText ) + "<sp>100<sp>|<sp>3<sp>|<sp>55000<sp>|293000<sp>|\n" 9 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
isSetTransientData ( ) { final org . bonitasoft . engine . data . instance . model . archive . impl . SAXMLObjectDataInstanceImpl saxmlObjectDataInstanceImpl = new org . bonitasoft . engine . data . instance . model . archive . impl . SAXMLObjectDataInstanceImpl ( ) ; saxmlObjectDataInstanceImpl . setTransientData ( tr...
org . junit . Assert . assertEquals ( true , saxmlObjectDataInstanceImpl . isTransientData ( ) )
initialisesBoundsToSource ( ) { java . awt . geom . Point2D centre = place . getCentre ( ) ; java . awt . Rectangle expected = new java . awt . Rectangle ( 0 , 0 , ( ( int ) ( centre . getX ( ) ) ) , ( ( int ) ( centre . getY ( ) ) ) ) ; java . awt . Rectangle actual = temporaryArcView . getBounds ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( expected , actual )
executesHttpGETRequestWithTemplateReplacement ( ) { setField ( getDelegate , "url" , new org . activiti . engine . impl . el . FixedValue ( "foo" ) ) ; final org . springframework . http . ResponseEntity < java . lang . Object > responseEntity = mock ( org . springframework . http . ResponseEntity . class ) ; given ( r...
org . junit . Assert . assertTrue ( true )
previousValueWhenMinShouldNotDecrement ( ) { com . willwinder . universalgcodesender . uielements . jog . StepSizeSpinnerModel model = new com . willwinder . universalgcodesender . uielements . jog . StepSizeSpinnerModel ( ) ; model . setValue ( StepSizeSpinnerModel . MIN_VALUE ) ; "<AssertPlaceHolder>" ; } getPrevious...
org . junit . Assert . assertEquals ( null , model . getPreviousValue ( ) )
newDocumentFromURLTemplateProviderSpecifiedNonTerminalButOverriddenFromUITerminal ( ) { org . xwiki . model . reference . DocumentReference documentReference = new org . xwiki . model . reference . DocumentReference ( "xwiki" , "X" , "Y" ) ; com . xpn . xwiki . doc . XWikiDocument document = mock ( com . xpn . xwiki . ...
org . junit . Assert . assertNull ( result )
testProcessEachLine ( ) { java . lang . String realtimeStatsInfo = "result<sp>200<sp>150<sp>2147483647\r\nSTATS\r\nrealtime_put<sp>null\r\nrealtime_get<sp>null\r\nrealtime_offset<sp>null\r\nrealtime_get_miss<sp>null\r\nrealtime_put_failed<sp>null\r\nrealtime_message_size<sp>null\r\nEND" ; com . taobao . metamorphosis ....
org . junit . Assert . assertFalse ( com . taobao . metamorphosis . tools . monitor . statsprobe . RealTimeStatsProber . isNeedAlert ( line , 10 ) )
testTupleInterface ( ) { java . lang . String expected = org . jbasics . text . StringUtilities . join ( "<sp>" , org . jbasics . types . sequences . SequenceTest . testData ) ; org . jbasics . types . sequences . Sequence < java . lang . String > temp = org . jbasics . types . sequences . Sequence . cons ( ( ( java . ...
org . junit . Assert . assertEquals ( expected , b . toString ( ) )
testUnaryResultTypeLong ( ) { "<AssertPlaceHolder>" ; } unaryResultType ( java . lang . Object ) { java . lang . Class < ? > type = com . thoughtworks . qdox . builder . impl . EvaluatingVisitor . unaryNumericResultType ( value ) ; if ( type == ( void . class ) ) { if ( value instanceof java . lang . Float ) { type = c...
org . junit . Assert . assertEquals ( com . thoughtworks . qdox . builder . impl . Long . class , com . thoughtworks . qdox . builder . impl . EvaluatingVisitor . unaryResultType ( 0L ) )
testNull ( ) { java . lang . Object result = com . orientechnologies . orient . core . metadata . schema . OType . convert ( null , com . orientechnologies . orient . core . metadata . schema . Boolean . class ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { if ( iValue == null ) r...
org . junit . Assert . assertEquals ( result , null )
testHuidigHuwelijkMetAanvangBuitelandMetBuitelandsPersoonWijzigingNaam ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht huwelijk = maakHuwelijkBericht ( true , true ) ; final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView man = maakPersoonView ( fals...
org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) )
testOnClose ( ) { final boolean [ ] state = new boolean [ ] { false } ; com . annimon . stream . Stream < java . lang . Integer > stream = com . annimon . stream . Stream . of ( 0 , 1 , 2 ) . onClose ( new java . lang . Runnable ( ) { @ com . annimon . stream . streamtests . Override public void run ( ) { state [ 0 ] =...
org . junit . Assert . assertTrue ( state [ 0 ] )
getStringToInteger ( ) { com . gs . collections . api . block . function . Function < java . lang . String , java . lang . Integer > function = com . gs . collections . impl . block . factory . Functions . getStringToInteger ( ) ; "<AssertPlaceHolder>" ; } valueOf ( char ) { return function . valueOf ( charParameter ) ...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , function . valueOf ( "1" ) )
testGetResourceValidate ( ) { org . apache . commons . pool2 . impl . GenericObjectPoolConfig poolConfig = new org . apache . commons . pool2 . impl . GenericObjectPoolConfig ( ) ; poolConfig . setTestOnBorrow ( true ) ; this . pool = new org . springframework . data . redis . connection . jredis . JredisPool ( connect...
org . junit . Assert . assertNotNull ( client )
testDrill4786_2 ( ) { test ( "refresh<sp>table<sp>metadata<sp>dfs.`%s`" , org . apache . drill . exec . store . parquet . TestParquetMetadataCache . TABLE_NAME_2 ) ; checkForMetadataFile ( org . apache . drill . exec . store . parquet . TestParquetMetadataCache . TABLE_NAME_2 ) ; java . lang . String query1 = java . la...
org . junit . Assert . assertEquals ( expectedRowCount , actualRowCount )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . mark . scale . exchange . MarkScaleExchange entity = new org . lnu . is . domain . mark . scale . exchange . MarkScaleExchange ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected...
org . junit . Assert . assertEquals ( expected , actual )
testLogMessage ( ) { com . sap . hcp . cf . logging . common . TestCustomFields . LOGGER . info ( com . sap . hcp . cf . logging . common . TEST_MESSAGE ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( getMessage ( ) , org . hamcrest . core . Is . is ( com . sap . hcp . cf . logging . common . TEST_MESSAGE ) )
test_getLocalNexusServer_local_customRepo ( ) { java . lang . System . setProperty ( NexusServerManager . PROP_KEY_NEXUS_REPOSITORY , "mytest" ) ; org . talend . core . nexus . ArtifactRepositoryBean localNexusServer = org . talend . updates . runtime . nexus . component . NexusServerManager . getInstance ( ) . getLoca...
org . junit . Assert . assertNotNull ( localNexusServer )
testDeserializationSpeed ( ) { final com . logsniffer . fields . FieldsMap map = new com . logsniffer . fields . FieldsMap ( ) ; map . put ( "_severity" , new com . logsniffer . model . SeverityLevel ( "DEBUG" , 2 , com . logsniffer . model . SeverityLevel . SeverityClassification . DEBUG ) ) ; map . put ( "_timestamp"...
org . junit . Assert . assertEquals ( map , desrerializedMap )
testGetIPWhenInputIsNull ( ) { java . net . SocketAddress socketAddress = null ; java . lang . String ip = org . apache . flume . source . SyslogUtils . getIP ( socketAddress ) ; "<AssertPlaceHolder>" ; } getIP ( java . net . SocketAddress ) { try { java . net . InetSocketAddress inetSocketAddress = ( ( java . net . In...
org . junit . Assert . assertEquals ( "" , ip )
testSerialization ( ) { org . jfree . data . xy . XYIntervalDataItem item1 = new org . jfree . data . xy . XYIntervalDataItem ( 1.0 , 0.5 , 1.5 , 2.0 , 1.9 , 2.1 ) ; org . jfree . data . xy . XYIntervalDataItem item2 = ( ( org . jfree . data . xy . XYIntervalDataItem ) ( org . jfree . chart . TestUtils . serialised ( i...
org . junit . Assert . assertEquals ( item1 , item2 )
testLeavesOtherStringsAlone ( ) { java . lang . String in = "Hello<sp>world" ; java . lang . String out = converter . convert ( in ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { return value == null ? value : value . trim ( ) ; }
org . junit . Assert . assertEquals ( in , out )
testParquetJobConfigurationImplementationOptionHasAnArg ( ) { org . apache . sqoop . cli . RelatedOptions commonOptions = testBaseSqoopTool . getCommonOptions ( ) ; org . apache . commons . cli . Option implementationOption = commonOptions . getOption ( org . apache . sqoop . tool . TestBaseSqoopTool . PARQUET_CONFIGUR...
org . junit . Assert . assertTrue ( implementationOption . hasArg ( ) )
testGetSoapActionForSOAP11None ( ) { org . apache . cxf . binding . soap . SoapMessage message = setUpMessage ( "text/xml" , org . apache . cxf . binding . soap . Soap11 . getInstance ( ) , null ) ; control . replay ( ) ; java . lang . String action = org . apache . cxf . binding . soap . interceptor . SoapActionInInte...
org . junit . Assert . assertNull ( action )
testClaimQueueChangeCversion ( ) { org . apache . hadoop . hbase . ServerName serverName1 = org . apache . hadoop . hbase . ServerName . valueOf ( "127.0.0.1" , 8000 , 10000 ) ; org . apache . hadoop . hbase . replication . TestZKReplicationQueueStorage . STORAGE . addWAL ( serverName1 , "1" , "file" ) ; int v0 = org ....
org . junit . Assert . assertEquals ( 1 , ( v1 - v0 ) )
testAddWebFacetToBatch_nonWebFacet ( ) { com . google . cloud . tools . eclipse . appengine . facets . FacetUtil facetUtil = new com . google . cloud . tools . eclipse . appengine . facets . FacetUtil ( mockFacetedProject ) ; try { facetUtil . addWebFacetToBatch ( JavaFacet . VERSION_1_7 ) ; org . junit . Assert . fail...
org . junit . Assert . assertNotNull ( ex . getMessage ( ) )
testNow ( ) { java . lang . String now = nom . tam . fits . FitsDate . getFitsDateString ( ) ; java . lang . String now2 = nom . tam . fits . FitsDate . getFitsDateString ( new java . util . Date ( ) ) ; int tryCount = 100 ; while ( ( tryCount > 0 ) && ( ! ( now . regionMatches ( 0 , now2 , 0 , ( ( now . length ( ) ) -...
org . junit . Assert . assertTrue ( ( tryCount > 0 ) )
focusing ( ) { jetbrains . jetpad . projectional . view . View view = newFocusableView ( ) ; container . contentRoot ( ) . children ( ) . add ( view ) ; container . focusedView ( ) . set ( view ) ; "<AssertPlaceHolder>" ; } focused ( ) { return getProp ( jetbrains . jetpad . projectional . view . View . FOCUSED ) ; }
org . junit . Assert . assertTrue ( view . focused ( ) . get ( ) )
testComputeVec4FromStringWithBlank ( ) { java . lang . String vectorString = "" ; gov . nasa . worldwind . geom . Vec4 result = au . gov . ga . earthsci . worldwind . common . util . Util . computeVec4FromString ( vectorString ) ; "<AssertPlaceHolder>" ; } computeVec4FromString ( java . lang . String ) { if ( au . gov ...
org . junit . Assert . assertNull ( result )
testLastHashWins ( ) { c = b . hash ( "abcdef" ) . hash ( "ghij" ) . build ( ) ; "<AssertPlaceHolder>" ; } getHash ( ) { return hash ; }
org . junit . Assert . assertEquals ( "ghij" , c . getHash ( ) )
test ( ) { int [ ] [ ] matrix = new int [ ] [ ] { new int [ ] { 9 , 9 , 4 } , new int [ ] { 6 , 6 , 8 } , new int [ ] { 2 , 1 , 1 } } ; "<AssertPlaceHolder>" ; } longestIncreasingPath ( int [ ] [ ] ) { if ( ( matrix == null ) || ( ( matrix . length ) == 0 ) ) { return 0 ; } int m = matrix . length ; int n = matrix [ 0 ...
org . junit . Assert . assertThat ( longestIncreasingPath ( matrix ) , org . hamcrest . Matchers . is ( 4 ) )
testGetByID ( ) { int id = 0 ; try { id = _setupTestPatientExamination ( false ) ; org . isf . examination . model . PatientExamination patientExamination = examinationOperations . getByID ( id ) ; org . isf . examination . test . Tests . testPatientExamination . check ( patientExamination ) ; org . isf . examination ....
org . junit . Assert . assertEquals ( true , false )
testCompareCustomer ( ) { int x = new net . rrm . ehour . sort . ProjectAssignmentAggregateComparator ( ProjectAssignmentAggregateComparator . SORT_ON_CUSTOMER ) . compare ( a1 , a2 ) ; "<AssertPlaceHolder>" ; } compare ( net . rrm . ehour . domain . Project , net . rrm . ehour . domain . Project ) { return new org . a...
org . junit . Assert . assertTrue ( ( x < 0 ) )
testClosing_allStrels ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 100 , 100 ) ; for ( int y = 40 ; y < 60 ; y ++ ) { for ( int x = 40 ; x < 60 ; x ++ ) { image . set ( x , y , 255 ) ; } } for ( inra . ijpb . morphology . Strel . Shape type : Strel . Shape . values ( ) ) { inra . ijpb ...
org . junit . Assert . assertEquals ( image . get ( x , y ) , result . get ( x , y ) )
testRetrieveOutboundRMProperties ( ) { org . apache . cxf . message . Message msg = control . createMock ( org . apache . cxf . message . Message . class ) ; org . apache . cxf . ws . rm . RMProperties rmps = control . createMock ( org . apache . cxf . ws . rm . RMProperties . class ) ; org . easymock . EasyMock . expe...
org . junit . Assert . assertSame ( rmps , org . apache . cxf . ws . rm . RMContextUtils . retrieveRMProperties ( msg , true ) )
exitCodeIsMinusOneWhenAllReplicationsFail ( ) { doThrow ( new java . lang . RuntimeException ( ) ) . when ( replication1 ) . replicate ( ) ; doThrow ( new java . lang . RuntimeException ( ) ) . when ( replication2 ) . replicate ( ) ; locomotive . run ( applicationArguments ) ; "<AssertPlaceHolder>" ; } getExitCode ( ) ...
org . junit . Assert . assertThat ( locomotive . getExitCode ( ) , org . hamcrest . CoreMatchers . is ( ( - 1 ) ) )
createSpringMvcPortlet ( ) { java . lang . String packageName = "test.spring.mvc.portlet.maven" ; wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . portlet . tests . SPRING_MVC_PORTLET ) ; wizardAction . next ( ) ; wizardAction ....
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( projectNames ) )
testMultiplyExactLong ( ) { long [ ] specialValues = new long [ ] { Long . MIN_VALUE , ( Long . MIN_VALUE ) + 1 , ( Long . MIN_VALUE ) + 2 , Long . MAX_VALUE , ( Long . MAX_VALUE ) - 1 , ( Long . MAX_VALUE ) - 2 , - 10 , - 9 , - 8 , - 7 , - 6 , - 5 , - 4 , - 3 , - 2 , - 1 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , ...
org . junit . Assert . assertEquals ( bdMul , java . math . BigInteger . valueOf ( org . hipparchus . util . FastMath . multiplyExact ( a , b ) ) )
whenNotAnnotatedOnStringParameter ( ) { class Customer { public void someAction ( @ org . apache . isis . applib . annotation . Parameter ( regexPattern = "[123].*" ) final int name ) { } } actionMethod = findMethod ( Customer . class , "someAction" , new java . lang . Class [ ] { int . class } ) ; final org . apache ....
org . junit . Assert . assertNull ( regExFacet )
setFileTest ( ) { java . io . File file = org . sonar . plugins . delphi . utils . DelphiUtils . getResource ( org . sonar . plugins . delphi . project . DelphiProjectTest . XML_FILE ) ; project . setFile ( file ) ; "<AssertPlaceHolder>" ; } getXmlFile ( ) { return file ; }
org . junit . Assert . assertEquals ( file , project . getXmlFile ( ) )
testCreateValidationCommand_returnsComponentLayoutValidationCommand ( ) { org . apache . ambari . server . configuration . Configuration configuration = mock ( org . apache . ambari . server . configuration . Configuration . class ) ; when ( configuration . getRecommendationsArtifactsRolloverMax ( ) ) . thenReturn ( 10...
org . junit . Assert . assertEquals ( org . apache . ambari . server . api . services . stackadvisor . commands . ComponentLayoutValidationCommand . class , command . getClass ( ) )
getRedenEindeRelatieTestOK ( ) { final char rerCode = 'N' ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . RedenBeeindigingRelatie expectedRer = new nl . bzk . algemeenbrp . dal . domein . brp . entity . RedenBeeindigingRelatie ( rerCode , "Nietigverklaring" ) ; expectedRer . setCode ( rerCode ) ; expecte...
org . junit . Assert . assertEquals ( expected , resultRer )
when_setProperties_thenReturnsProperties ( ) { com . hazelcast . jet . config . JetConfig jetConfig = new com . hazelcast . jet . config . JetConfig ( ) ; java . util . Properties properties = new java . util . Properties ( ) ; jetConfig . setProperties ( properties ) ; "<AssertPlaceHolder>" ; } getProperties ( ) { ret...
org . junit . Assert . assertEquals ( properties , jetConfig . getProperties ( ) )
testAnimalBirthTooLate ( ) { org . eclipse . emf . ecore . EObject generic = testFactory . create ( animal ) ; generic . eSet ( birthYear , 2600 ) ; "<AssertPlaceHolder>" ; } validateConstraints ( org . eclipse . emf . ecore . EObject ) { final org . eclipse . core . runtime . IStatus status = gov . nasa . ensemble . c...
org . junit . Assert . assertFalse ( validateConstraints ( generic ) )
isParallelProvisioning_NotSet ( ) { configSettings = new java . util . HashMap ( ) ; propertyHandler = new org . oscm . app . iaas . PropertyHandler ( settings ) ; "<AssertPlaceHolder>" ; } isParallelProvisioningEnabled ( ) { java . lang . String enabled = getValue ( org . oscm . app . iaas . PropertyHandler . ENABLE_P...
org . junit . Assert . assertTrue ( propertyHandler . isParallelProvisioningEnabled ( ) )
testExpandDims2d ( ) { lombok . val origShape = new long [ ] { 3 , 4 } ; for ( int i = 0 ; i < 3 ; i ++ ) { for ( org . nd4j . linalg . primitives . Pair < org . nd4j . linalg . api . ndarray . INDArray , java . lang . String > p : org . nd4j . linalg . checkutil . NDArrayCreationUtil . getAllTestMatricesWithShape ( or...
org . junit . Assert . assertEquals ( msg , out , expOut )
testHasPrintService ( ) { com . eclipsesource . tabris . TabrisClient client = new com . eclipsesource . tabris . internal . TabrisClientImpl ( ) ; com . eclipsesource . tabris . print . Printer print = client . getService ( com . eclipsesource . tabris . print . Printer . class ) ; "<AssertPlaceHolder>" ; } getService...
org . junit . Assert . assertNotNull ( print )
testWhereIn2200 ( ) { superHeroDataBase . populateSuperHero ( storeManager , 4500 ) ; try ( final io . vertigo . commons . transaction . VTransactionWritable transaction = transactionManager . createCurrentTransaction ( ) ) { final io . vertigo . dynamo . task . metamodel . TaskDefinition taskDefinition = registerTaskL...
org . junit . Assert . assertEquals ( 2200 , resultList . size ( ) )
testEvaluatePropertyInPropertyOnConsumedResource ( ) { java . util . Map < java . lang . String , ch . puzzle . itc . mobiliar . business . property . entity . FreeMarkerProperty > thisProperties = com . google . common . collect . Maps . newHashMap ( ) ; thisProperties . put ( "foo" , new ch . puzzle . itc . mobiliar ...
org . junit . Assert . assertEquals ( "val1" , result )
test17 ( ) { "<AssertPlaceHolder>" ; } getByCode ( java . lang . String ) { return com . neovisionaries . i18n . CountryCode . getByCode ( code , true ) ; }
org . junit . Assert . assertNull ( com . neovisionaries . i18n . CountryCode . getByCode ( null ) )
testShowJob ( ) { org . apache . hadoop . yarn . submarine . common . MockClientContext mockClientContext = new org . apache . hadoop . yarn . submarine . common . MockClientContext ( ) ; org . apache . hadoop . yarn . submarine . client . cli . ShowJobCli showJobCli = new org . apache . hadoop . yarn . submarine . cli...
org . junit . Assert . assertEquals ( parameters . getName ( ) , "my-job" )
testFindComplexTypeInSchema ( ) { java . lang . String namespaceURI = URI_NS_SAML20P ; java . lang . String elementTypeLocalName = "ResponseType" ; wsattacker . library . schemaanalyzer . SchemaAnalyzerImpl instance = new wsattacker . library . schemaanalyzer . SchemaAnalyzerImpl ( ) ; instance . appendSchema ( wsattac...
org . junit . Assert . assertEquals ( expResult , result )
shouldCreateGroupedCorrectlyWhenOptimationsEnabled ( ) { final io . confluent . ksql . util . KsqlConfig ksqlConfig = new io . confluent . ksql . util . KsqlConfig ( com . google . common . collect . ImmutableMap . of ( KsqlConfig . KSQL_USE_NAMED_INTERNAL_TOPICS , KsqlConfig . KSQL_USE_NAMED_INTERNAL_TOPICS_ON ) ) ; w...
org . junit . Assert . assertThat ( returned , org . hamcrest . Matchers . is ( grouped ) )
listScheduleEventsForAnUnexistingContributor ( ) { java . lang . String contributorId = "100" ; java . util . Set < com . silverpeas . scheduleevent . service . model . beans . ScheduleEvent > events = scheduleEventDao . listScheduleEventsByContributorId ( contributorId ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { retur...
org . junit . Assert . assertThat ( events . isEmpty ( ) , org . hamcrest . Matchers . is ( true ) )
setsTrackOnV1TagOnly ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null ) ; wrapper . setTrack ( "a<sp>track" ) ; "<AssertPlaceHolder>" ; } getT...
org . junit . Assert . assertEquals ( "a<sp>track" , id3v1Tag . getTrack ( ) )
endToEndTest ( ) { io . teknek . nibiru . client . RpcClient rpcClient = new io . teknek . nibiru . client . RpcClient ( "127.0.0.1" , server . getConfiguration ( ) . getTransportPort ( ) , 10000 , 10000 ) ; org . codehaus . jackson . type . TypeReference < io . teknek . nibiru . transport . rpc . BlockingRpcResponse <...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 5 ) , resp . getRpcResult ( ) )
testStartOrResumeMultipartUploadForceRestartFalse ( ) { forceRestart = Boolean . FALSE ; org . sagebionetworks . repo . model . file . MultipartUploadStatus status = manager . startOrResumeMultipartUpload ( userInfo , request , forceRestart ) ; "<AssertPlaceHolder>" ; verify ( mockMultiparUploadDAO , never ( ) ) . dele...
org . junit . Assert . assertNotNull ( status )
testConflictResolution ( ) { final org . tmatesoft . svn . test . TestOptions options = org . tmatesoft . svn . test . TestOptions . getInstance ( ) ; final org . tmatesoft . svn . test . SvnOperationFactory svnOperationFactory = new org . tmatesoft . svn . test . SvnOperationFactory ( ) ; final org . tmatesoft . svn ....
org . junit . Assert . assertEquals ( "mine" , fileContentsString )
testFormURLDecode_1 ( ) { java . lang . String string = "" ; java . lang . String result = org . jinstagram . http . URLUtils . formURLDecode ( string ) ; "<AssertPlaceHolder>" ; } formURLDecode ( java . lang . String ) { org . jinstagram . utils . Preconditions . checkNotNull ( string , "Cannot<sp>decode<sp>null<sp>st...
org . junit . Assert . assertEquals ( "" , result )
collectCharParallel ( ) { org . eclipse . collections . api . list . primitive . CharList expected = org . eclipse . collections . impl . collector . Collectors2AdditionalTest . LARGE_INTERVAL . collectChar ( ( each ) -> ( ( char ) ( each % Character . MAX_VALUE ) ) , CharLists . mutable . empty ( ) ) ; org . eclipse ....
org . junit . Assert . assertEquals ( expected , actual )
equalsTest ( ) { org . openscience . cdk . group . Partition p = new org . openscience . cdk . group . Partition ( new int [ ] [ ] { new int [ ] { 0 } , new int [ ] { 1 } } ) ; org . openscience . cdk . group . Partition o = new org . openscience . cdk . group . Partition ( new int [ ] [ ] { new int [ ] { 0 } , new int...
org . junit . Assert . assertEquals ( p , o )
getAdapter_Add ( ) { org . oscm . apiversioning . enums . ModificationType type = org . oscm . apiversioning . enums . ModificationType . ADD ; org . oscm . apiversioning . adapter . IAdapter result = org . oscm . apiversioning . adapter . AdapterFactory . getAdapter ( type ) ; "<AssertPlaceHolder>" ; } getAdapter ( or...
org . junit . Assert . assertTrue ( ( result instanceof org . oscm . apiversioning . adapter . AddAdapter ) )
testInsertStringField_Null ( ) { com . jmethods . catatumbo . entities . StringField entity = new com . jmethods . catatumbo . entities . StringField ( ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em . insert ( entity ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em . load ( com . jmeth...
org . junit . Assert . assertTrue ( ( ( ( entity . getId ( ) ) > 0 ) && ( ( entity . getName ( ) ) == null ) ) )
successSecondThenFirstAlreadyFailed ( ) { initReg . remove ( ) ; initPair ( jetbrains . jetpad . base . Asyncs . < java . lang . Integer > failure ( new java . lang . Throwable ( ) ) , second ) ; second . success ( "a" ) ; "<AssertPlaceHolder>" ; } success ( ItemT ) { if ( alreadyHandled ( ) ) { throw new java . lang ....
org . junit . Assert . assertNotNull ( error )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new com . flags...
org . junit . Assert . assertNotNull ( fixture )
testLexerTwoRules ( ) { org . antlr . v4 . tool . LexerGrammar lg = new org . antlr . v4 . tool . LexerGrammar ( ( "mode<sp>0:0\n" 6 + ( "A<sp>:<sp>\'a\'<sp>;\n" + "mode<sp>0:0\n" 1 ) ) ) ; java . lang . String expecting = "max<sp>type<sp>2\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "mode<sp>0:0\n" 7 + "1:RULE_START<...
org . junit . Assert . assertEquals ( expecting , result )
testListAll ( ) { com . shippo . model . CustomsItemCollection objectCollection = com . shippo . model . CustomsItem . all ( null ) ; "<AssertPlaceHolder>" ; } getData ( ) { return results ; }
org . junit . Assert . assertNotNull ( objectCollection . getData ( ) )
testGradientLRNSimple ( ) { org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; int minibatch = 10 ; int depth = 6 ; int hw = 5 ; int nOut = 4 ; org . nd4j . linalg . api . ndarray . INDArray input = org . nd4j . linalg . factory . Nd4j . rand ( new int [ ] { minibatch , depth , hw , hw } ) ; org...
org . junit . Assert . assertTrue ( gradOK )
test5SecureDeleteSharedOAuth1CredentialsTestDeleteSharedOAuth1Credentials ( ) { { org . alfresco . repo . security . authentication . AuthenticationUtil . setFullyAuthenticatedUser ( org . alfresco . repo . oauth1 . OAuth1CredentialsStoreServiceTest . TEST_USER_TWO ) ; java . util . List < org . alfresco . service . cm...
org . junit . Assert . assertTrue ( deleted )
testConvertValueToBoolean ( ) { boolean conv = testConvertValue ( org . apache . avro . Schema . create ( Schema . Type . STRING ) , "false" , TypeConverterProperties . TypeConverterOutputTypes . Boolean , null , org . talend . components . processing . runtime . typeconverter . Boolean . class ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertThat ( conv , org . hamcrest . Matchers . is ( false ) )
whenReadUTFEncodedFile_thenCorrect ( ) { final java . lang . String expected_value = "" ; final org . baeldung . java . io . BufferedReader reader = new org . baeldung . java . io . BufferedReader ( new org . baeldung . java . io . InputStreamReader ( new org . baeldung . java . io . FileInputStream ( "src/test/resourc...
org . junit . Assert . assertEquals ( expected_value , currentLine )
testJoin0 ( ) { org . graalvm . compiler . core . common . type . Stamp a = org . graalvm . compiler . core . common . type . StampFactory . object ( getType ( org . graalvm . compiler . nodes . test . A . class ) ) ; org . graalvm . compiler . core . common . type . Stamp b = org . graalvm . compiler . core . common ....
org . junit . Assert . assertEquals ( b , join ( a , b ) )
testSplitLogFileFirstLineCorruptionLog ( ) { conf . setBoolean ( org . apache . hadoop . hbase . regionserver . wal . TestHLogSplit . HBASE_SKIP_ERRORS , true ) ; generateHLogs ( 1 , 10 , ( - 1 ) ) ; org . apache . hadoop . fs . FileStatus logfile = fs . listStatus ( org . apache . hadoop . hbase . regionserver . wal ....
org . junit . Assert . assertEquals ( 1 , fs . listStatus ( corruptDir ) . length )
testManySegmentsPerShard2 ( ) { final org . apache . druid . server . coordinator . helper . CompactionSegmentIterator iterator = policy . reset ( com . google . common . collect . ImmutableMap . of ( org . apache . druid . server . coordinator . helper . NewestSegmentFirstPolicyTest . DATA_SOURCE , createCompactionCon...
org . junit . Assert . assertFalse ( iterator . hasNext ( ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . workflow . kaleo . model . KaleoNode newKaleoNode = addKaleoNode ( ) ; com . liferay . portal . workflow . kaleo . model . KaleoNode existingKaleoNode = _persistence . fetchByPrimaryKey ( newKaleoNode . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrima...
org . junit . Assert . assertEquals ( existingKaleoNode , newKaleoNode )
testIndexOfFactTable ( ) { final org . pentaho . metadata . model . LogicalModel logicalModel = mock ( org . pentaho . metadata . model . LogicalModel . class ) ; final org . pentaho . metadata . model . LogicalTable logicalTable1 = mock ( org . pentaho . metadata . model . LogicalTable . class ) ; when ( logicalTable1...
org . junit . Assert . assertEquals ( 1 , indexOfFactTable )
shouldAddEntriesToCache ( ) { service . putInCache ( uk . gov . gchq . gaffer . cache . impl . HashMapCacheServiceTest . CACHE_NAME , "test" , 1 ) ; "<AssertPlaceHolder>" ; } getFromCache ( java . lang . String , K ) { return null ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , service . getFromCache ( uk . gov . gchq . gaffer . cache . impl . HashMapCacheServiceTest . CACHE_NAME , "test" ) )
testInstallStatusEvent ( ) { classUnderTest = new net . sourceforge . squirrel_sql . client . update . gui . installer . event . InstallStatusEvent ( net . sourceforge . squirrel_sql . client . update . gui . installer . event . InstallEventType . BACKUP_COMPLETE ) ; "<AssertPlaceHolder>" ; } getType ( ) { return _type...
org . junit . Assert . assertEquals ( net . sourceforge . squirrel_sql . client . update . gui . installer . event . InstallEventType . BACKUP_COMPLETE , classUnderTest . getType ( ) )
parameterFieldInject ( ) { org . easydevelop . business . domain . UserOrder order = new org . easydevelop . business . domain . UserOrder ( ) ; java . lang . Integer orderId = keyTest . parameterFieldInject ( order ) ; "<AssertPlaceHolder>" ; } parameterFieldInject ( org . easydevelop . business . domain . UserOrder )...
org . junit . Assert . assertTrue ( ( orderId != null ) )
words ( ) { int n = randomint ( ) ; java . lang . String s = loremIpsum . words ( n ) ; testString ( s ) ; int c = countWords ( s ) ; log . debug ( ( ( ( "expecting<sp>" + n ) + "<sp>words,<sp>counted<sp>" ) + c ) ) ; "<AssertPlaceHolder>" ; } countWords ( java . lang . String ) { return countChunks ( s , "[\\s]" ) ; }
org . junit . Assert . assertEquals ( n , c )
shouldReturnTasksWithTaskCandidateUserOrTaskCandidateGroupWithIncludeAssignedTasks ( ) { org . camunda . bpm . engine . task . Task task1 = taskService . newTask ( ) ; taskService . saveTask ( task1 ) ; taskService . addCandidateUser ( task1 . getId ( ) , "John<sp>Doe" ) ; taskService . setAssignee ( task1 . getId ( ) ...
org . junit . Assert . assertEquals ( 2 , tasks . size ( ) )
testFileMd5SumEquals_OtherFile_SameContent ( ) { java . nio . file . Path path1 = java . nio . file . Paths . get ( nl . jpoint . vertx . deploy . agent . util . FileDigestUtilTest . class . getResource ( "file1.txt" ) . toURI ( ) ) ; java . nio . file . Path path2 = java . nio . file . Paths . get ( nl . jpoint . vert...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( digest1 , digest2 ) )
testRemoveHtmlClassStringNoMatch ( ) { com . github . bordertech . wcomponents . AbstractWComponent comp = new com . github . bordertech . wcomponents . AbstractWComponent_Test . SimpleComponent ( ) ; comp . setHtmlClass ( "foo" ) ; comp . removeHtmlClass ( "bar" ) ; "<AssertPlaceHolder>" ; } getHtmlClass ( ) { throw n...
org . junit . Assert . assertEquals ( "foo" , comp . getHtmlClass ( ) )
testGetRegistrationDate ( ) { "<AssertPlaceHolder>" ; } getRegistrationDate ( ) { return null ; }
org . junit . Assert . assertNull ( meta . getRegistrationDate ( ) )
testIp ( ) { byte [ ] bytes = org . bouncycastle . util . encoders . Hex . decode ( "41043e96222332ea7848323c08116dddafbfa917b8e37f0bdf63841628267148588a09a43540942d58d49717ad3fabfe14978cf4f0a8b84d2435dad16e9aa4d7f935ac" ) ; com . google . bitcoin . script . Script s = new com . google . bitcoin . script . Script ( byt...
org . junit . Assert . assertTrue ( s . isSentToRawPubKey ( ) )
testGetSchema4SpecialName ( ) { org . talend . components . jdbc . dataset . JDBCDatasetProperties dataset = createDatasetProperties ( false , org . talend . components . jdbc . dataprep . JDBCDatasetTestIT . special_table_name ) ; org . talend . components . jdbc . runtime . dataprep . JDBCDatasetRuntime runtime = new...
org . junit . Assert . assertNotNull ( schema )
testBeansProjectXMLConfigWithExternalConfigSet ( ) { org . eclipse . core . resources . IProject secondProject = org . springsource . ide . eclipse . commons . tests . util . StsTestUtil . createPredefinedProject ( "beans-config-tests-2" , Activator . PLUGIN_ID ) ; org . springframework . ide . eclipse . beans . core ....
org . junit . Assert . assertEquals ( 2 , configs . size ( ) )
testIsEmpty ( ) { io . netty . handler . codec . http2 . Http2Headers headers = io . netty . handler . codec . http2 . ReadOnlyHttp2Headers . trailers ( false ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return delegate . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( headers . isEmpty ( ) )
testIsAllocation2 ( ) { net . sourceforge . pmd . lang . java . ast . ASTBlockStatement bs = new net . sourceforge . pmd . lang . java . ast . ASTBlockStatement ( 0 ) ; bs . jjtAddChild ( new net . sourceforge . pmd . lang . java . ast . ASTAssertStatement ( 1 ) , 0 ) ; "<AssertPlaceHolder>" ; } isAllocation ( ) { retu...
org . junit . Assert . assertFalse ( bs . isAllocation ( ) )
stop ( ) { nginxCommandLineInterface . killAll ( ) . thenCompose ( ( nginxResponse ) -> nginxCommandLineInterface . stop ( ) ) . thenCompose ( ( nginxResponse ) -> nginxCommandLineInterface . start ( ) ) . thenCompose ( ( nginxResponse ) -> nginxCommandLineInterface . stop ( ) ) . thenAccept ( ( nginxResponse ) -> { if...
org . junit . Assert . assertTrue ( nginxCommandLineInterfaceResponse . getSuccess ( ) )
runTestObjectSensitivity1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "FieldAndObjectSensitivity/ObjectSensitivity1.apk" ) ; if ( res != null ) "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , res . size ( ) )
shouldReturnFalseAndAddErrorWhenValidateTransferAndTimeIsNull ( ) { given ( transfer . getStringField ( com . qcadoo . mes . materialFlow . hooks . TYPE ) ) . willReturn ( com . qcadoo . mes . materialFlow . hooks . TRANSPORT . getStringValue ( ) ) ; given ( transfer . getField ( com . qcadoo . mes . materialFlow . hoo...
org . junit . Assert . assertFalse ( result )
testParseNullKey ( ) { final org . apache . kafka . connect . sink . SinkRecord sinkRecord = new org . apache . kafka . connect . sink . SinkRecord ( "test" , 0 , null , null , null , null , 0 ) ; final java . util . Map < java . lang . String , byte [ ] > keys = eventParser . parseKey ( sinkRecord ) ; "<AssertPlaceHol...
org . junit . Assert . assertTrue ( keys . isEmpty ( ) )
testGetSecurityRole ( ) { securityRoleDaoTestHelper . createSecurityRoleEntity ( org . finra . herd . service . SECURITY_ROLE , org . finra . herd . service . DESCRIPTION ) ; org . finra . herd . model . api . xml . SecurityRole securityRole = securityRoleService . getSecurityRole ( new org . finra . herd . model . api...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . SecurityRole ( SECURITY_ROLE , DESCRIPTION ) , securityRole )
leftNotNullAndRightNullShouldBeFalse ( ) { org . apache . metron . stellar . dsl . Token < java . lang . Double > left = mock ( org . apache . metron . stellar . dsl . Token . class ) ; when ( left . getValue ( ) ) . thenReturn ( 1.0 ) ; org . apache . metron . stellar . dsl . Token < java . lang . Long > right = mock ...
org . junit . Assert . assertFalse ( evaluated )
testOpWithMissingNamespace ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/op_without_namespace.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSource . fromFi...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )