input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testSetActiveModelInstance02 ( ) { org . dresdenocl . modelinstance . IModelInstanceRegistry modelInstanceRegistry ; modelInstanceRegistry = org . dresdenocl . modelbus . ModelBusPlugin . getModelInstanceRegistry ( ) ; "<AssertPlaceHolder>" ; org . dresdenocl . modelinstance . IModelInstance modelInstance ; modelInstan...
org . junit . Assert . assertEquals ( 0 , modelInstanceRegistry . getModelInstances ( this . model ) . length )
testRemove ( ) { com . liferay . fragment . model . FragmentEntryLink newFragmentEntryLink = addFragmentEntryLink ( ) ; _persistence . remove ( newFragmentEntryLink ) ; com . liferay . fragment . model . FragmentEntryLink existingFragmentEntryLink = _persistence . fetchByPrimaryKey ( newFragmentEntryLink . getPrimaryKe...
org . junit . Assert . assertNull ( existingFragmentEntryLink )
shouldIgnoreUserAgentsWithSpecifiedStrings ( ) { req . withHeader ( Header . UserAgent , "Googlebot/2.1<sp>(+http://www.google.com/bot.html)" ) ; com . threewks . thundr . route . controller . FilterRules filterRules = new com . threewks . thundr . route . controller . FilterRules ( ) ; filterRules . ignoreUserAgents (...
org . junit . Assert . assertThat ( filterRules . shouldIgnore ( req ) , is ( true ) )
invalidStringGreaterOrEqualConstraintShouldCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createGreaterOrEqualDefinition ( ToscaTypes . STRING . toString ( ) , "value" ) , ...
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
testGzipVhdGetVirtualSize ( ) { java . lang . String gzipVhdPath = java . net . URLDecoder . decode ( getClass ( ) . getResource ( "/vhds/test.vhd.gz" ) . getFile ( ) , java . nio . charset . Charset . defaultCharset ( ) . name ( ) ) ; long expectedVirtualSizeBytes = 104857600 ; long actualVirtualSizeBytes = processor ...
org . junit . Assert . assertEquals ( expectedVirtualSizeBytes , actualVirtualSizeBytes )
testDecryptInvalidate ( ) { com . amazonaws . encryptionsdk . model . DecryptionMaterials result = com . amazonaws . encryptionsdk . caching . CacheTestFixtures . createDecryptResult ( com . amazonaws . encryptionsdk . caching . CacheTestFixtures . createDecryptRequest ( 0 ) ) ; cache . putEntryForDecrypt ( new byte [ ...
org . junit . Assert . assertNull ( cache . getEntryForDecrypt ( new byte [ ] { 0 } ) )
testTouchableDependencyInjectedViaConstraint ( ) { container . addComponent ( com . picocontainer . testmodel . AlternativeTouchable . class ) ; container . addComponent ( com . picocontainer . testmodel . DecoratedTouchable . class , com . picocontainer . testmodel . DecoratedTouchable . class , new com . picocontaine...
org . junit . Assert . assertNotNull ( t )
testArrayNullValues ( ) { java . util . List < ? > val = ( ( java . util . List < ? > ) ( parser . parseObject ( new java . io . StringReader ( "[,\"a\",]" ) , false ) ) ) ; "<AssertPlaceHolder>" ; } parseObject ( java . io . PushbackReader , int ) { switch ( c ) { case '{' : java . util . LinkedHashMap < java . lang ....
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( null , "a" ) , val )
testRegisterNode ( ) { org . apache . cayenne . graph . GraphMap map = new org . apache . cayenne . graph . GraphMap ( ) ; java . lang . Object node = new java . lang . Object ( ) ; map . registerNode ( "key" , node ) ; "<AssertPlaceHolder>" ; } getNode ( java . lang . String ) { if ( org . apache . cayenne . util . Ut...
org . junit . Assert . assertSame ( node , map . getNode ( "key" ) )
checkListSelect ( ) { com . vaadin . testbench . elements . ListSelectElement elem = $ ( com . vaadin . testbench . elements . ListSelectElement . class ) . get ( 0 ) ; java . lang . String expected = ComponentElementGetValue . TEST_STRING_VALUE ; java . lang . String actual = elem . getValue ( ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( expected , actual )
should_get_field_in_super_type ( ) { org . fest . reflect . core . Reflection_field_Test . Jedi jedi = new org . fest . reflect . core . Reflection_field_Test . Jedi ( ) ; jedi . name = "Yoda" ; java . lang . String name = org . fest . reflect . core . Reflection . field ( "name" ) . ofType ( java . lang . String . cla...
org . junit . Assert . assertEquals ( "Yoda" , name )
isVotingSuspended_is_false_if_minSupportCountDuration_not_ended ( ) { int minSupportCountForSearch = 50 ; org . joda . time . Days minSupportCountDuration = org . joda . time . Days . days ( 1 ) ; initiativeInfo . setStartDate ( fi . om . initiative . dto . initiative . InitiativeInfoTest . YESTERDAY ) ; initiativeInfo...
org . junit . Assert . assertThat ( initiativeInfo . isVotingSuspended ( minSupportCountForSearch , minSupportCountDuration , fi . om . initiative . dto . initiative . InitiativeInfoTest . TODAY ) , org . hamcrest . CoreMatchers . is ( false ) )
emptyInputStreamHasNext ( ) { this . reader = new org . geotools . data . arcgisrest . ArcGISRestFeatureReader ( this . fType , new java . io . ByteArrayInputStream ( "" . getBytes ( ) ) , this . LOGGER ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { if ( ( reference ) != ( modificationCount ) ) { throw new java . util . C...
org . junit . Assert . assertFalse ( this . reader . hasNext ( ) )
storesLowerCaseQuotedIdentifiersShouldBeReturnFalse ( ) { org . neo4j . jdbc . Neo4jDatabaseMetaData databaseMetaData = mock ( org . neo4j . jdbc . Neo4jDatabaseMetaData . class , withSettings ( ) . defaultAnswer ( Mockito . CALLS_REAL_METHODS ) ) ; "<AssertPlaceHolder>" ; } storesLowerCaseQuotedIdentifiers ( ) { retur...
org . junit . Assert . assertFalse ( databaseMetaData . storesLowerCaseQuotedIdentifiers ( ) )
testTranslateDBOToDTO_nullDBO ( ) { org . sagebionetworks . repo . model . UnsuccessfulLoginLockoutDTO translatedDTO = org . sagebionetworks . repo . model . dbo . dao . UnsuccessfulLoginLockoutDAOImpl . translateDBOToDTO ( null ) ; "<AssertPlaceHolder>" ; } translateDBOToDTO ( org . sagebionetworks . repo . model . db...
org . junit . Assert . assertNull ( translatedDTO )
testGetAllMessagesSearchParameterForSenderName ( ) { com . streamreduce . core . model . Connection c = testService . createSampleRssFeedPrivateConnectionAndRefresh ( testUser ) ; java . util . List < com . streamreduce . core . model . messages . SobaMessage > messages = messageService . getAllMessages ( testUser , nu...
org . junit . Assert . assertEquals ( 3 , messages . size ( ) )
testGetStyleForMetacardBinaryNoMatch ( ) { ddf . catalog . data . Metacard metacard = new org . codice . ddf . spatial . kml . transformer . MockMetacard ( AttributeFormat . BINARY . toString ( ) , MockMetacard . DEFAULT_LOCATION ) ; org . codice . ddf . spatial . kml . transformer . KmlStyleMap mapper = new org . codi...
org . junit . Assert . assertThat ( mapper . getStyleForMetacard ( metacard ) , org . hamcrest . Matchers . is ( "" ) )
testListExternalCompanies ( ) { int previous = externalCompanyDAO . list ( org . libreplan . business . externalcompanies . entities . ExternalCompany . class ) . size ( ) ; org . libreplan . business . externalcompanies . entities . ExternalCompany externalCompany = org . libreplan . business . test . externalcompanie...
org . junit . Assert . assertEquals ( ( previous + 1 ) , externalCompanyDAO . list ( org . libreplan . business . externalcompanies . entities . ExternalCompany . class ) . size ( ) )
toString_A$ ( ) { com . m3 . scalaflavor4j . RichFunction0 < java . lang . String > target = new com . m3 . scalaflavor4j . RichFunction0 ( new com . m3 . scalaflavor4j . Function0 < java . lang . String > ( ) { public java . lang . String apply ( ) { return "foo" ; } } ) ; java . lang . String actual = target . toStri...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testRemovesDuplicatePaths ( ) { java . lang . String url = "http://ocpsoft.com/prettyfaces/../prettyfaces/" ; java . lang . String expected = "http://ocpsoft.com/prettyfaces/" ; "<AssertPlaceHolder>" ; } canonicalize ( java . lang . String ) { if ( ( url != null ) && ( url . contains ( "/../" ) ) ) { java . lang . Stri...
org . junit . Assert . assertEquals ( expected , c . canonicalize ( url ) )
testFindOutsideTransaction ( ) { final org . springframework . data . neo4j . repository . GraphRepository < org . springframework . data . neo4j . Person > finder = graphRepositoryFactory . createGraphRepository ( org . springframework . data . neo4j . Person . class ) ; "<AssertPlaceHolder>" ; } findAll ( ) { return ...
org . junit . Assert . assertEquals ( false , finder . findAll ( ) . iterator ( ) . hasNext ( ) )
globalServiceStoredQueryNamespacesGml32 ( ) { org . geoserver . wfs . StoredQueryProvider storedQueryProvider = new org . geoserver . wfs . StoredQueryProvider ( getCatalog ( ) ) ; try { createTestStoredQuery ( storedQueryProvider , org . geoserver . test . GML32_PARAMETERS ) ; org . w3c . dom . Document document = get...
org . junit . Assert . assertTrue ( ( ( storedQueryProvider . listStoredQueries ( ) . size ( ) ) == 1 ) )
testRoundtripWithTwoValues ( ) { double [ ] doubles = new double [ ] { 1.0 , 0.0 } ; com . github . kutschkem . fpc . FpcCompressor fpc = new com . github . kutschkem . fpc . FpcCompressor ( ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( 64 ) ; fpc . compress ( buffer , doubles ) ; buffer . f...
org . junit . Assert . assertThat ( dest , org . hamcrest . CoreMatchers . is ( doubles ) )
shareAndSplit ( ) { okio . Buffer bufferA = new okio . Buffer ( ) . writeUtf8 ( "xxxx" ) ; okio . ByteString snapshot = bufferA . snapshot ( ) ; okio . Buffer bufferB = new okio . Buffer ( ) ; bufferB . write ( bufferA , 2 ) ; bufferB . writeUtf8 ( "yy" ) ; "<AssertPlaceHolder>" ; } utf8 ( ) { return toByteString ( ) ....
org . junit . Assert . assertEquals ( "xxxx" , snapshot . utf8 ( ) )
storeTo_parameterNames ( ) { java . util . Properties p = new java . util . Properties ( ) ; p . setProperty ( k ( "test" , com . asakusafw . windgate . core . KEY_DATA_CLASS ) , java . lang . String . class . getName ( ) ) ; p . setProperty ( k ( "test" , com . asakusafw . windgate . core . KEY_PROCESS_TYPE ) , "plain...
org . junit . Assert . assertThat ( target , is ( p ) )
testParsingDomainSocket ( ) { uri = "postgresql://%2Fvar%2Flib%2Fpostgresql" ; actualParsedResult = parse ( uri ) ; expectedParsedResult = new io . vertx . core . json . JsonObject ( ) . put ( "host" , "/var/lib/postgresql" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String$String ) { try { io . vertx . core . ...
org . junit . Assert . assertEquals ( expectedParsedResult , actualParsedResult )
testMethod ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testAnyMatchWithFalseResult ( ) { boolean match = com . annimon . stream . Stream . of ( 2 , 3 , 5 , 8 , 13 ) . anyMatch ( com . annimon . stream . Functions . remainder ( 10 ) ) ; "<AssertPlaceHolder>" ; } remainder ( int ) { return new com . annimon . stream . Predicate < java . lang . Integer > ( ) { @ com . annimon...
org . junit . Assert . assertFalse ( match )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoInstanceToken . class , _dynamicQueryClassLoader ) ; dynamicQuer...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testCallRpcRequestWithClient ( ) { com . aliyuncs . ecs . model . v20140526 . DescribeRegionsRequest request = new com . aliyuncs . ecs . model . v20140526 . DescribeRegionsRequest ( ) ; com . aliyuncs . ecs . model . v20140526 . DescribeRegionsResponse response = this . client . getAcsResponse ( request ) ; "<AssertPl...
org . junit . Assert . assertTrue ( ( ( response . getRegions ( ) . size ( ) ) > 0 ) )
ignoreOnNullValue ( ) { converter = new io . confluent . connect . elasticsearch . DataConverter ( true , io . confluent . connect . elasticsearch . DataConverter . BehaviorOnNullValues . IGNORE ) ; org . apache . kafka . connect . sink . SinkRecord sinkRecord = createSinkRecordWithValue ( null ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertNull ( converter . convertRecord ( sinkRecord , index , type , false , false ) )
nowInSystemTime ( ) { "<AssertPlaceHolder>" ; } nowInSystemTime ( ) { org . junit . Assert . assertThat ( net . time4j . range . CalendarMonth . nowInSystemTime ( ) , org . hamcrest . CoreMatchers . is ( net . time4j . SystemClock . inLocalView ( ) . now ( net . time4j . range . CalendarMonth . chronology ( ) ) ) ) ; }
org . junit . Assert . assertThat ( net . time4j . range . CalendarMonth . nowInSystemTime ( ) , org . hamcrest . CoreMatchers . is ( net . time4j . SystemClock . inLocalView ( ) . now ( net . time4j . range . CalendarMonth . chronology ( ) ) ) )
testPreviewRunFailValidationConfigs ( ) { com . streamsets . datacollector . runner . MockStages . setSourceCapture ( new com . streamsets . datacollector . runner . preview . TestPreviewRun . ReturnNumberSource ( ) { @ com . streamsets . datacollector . runner . preview . Override public java . util . List < com . str...
org . junit . Assert . assertFalse ( pp . validateConfigs ( ) . isEmpty ( ) )
testGetNextOfDictionaryItemChinese ( ) { java . util . ArrayList < java . lang . String > expectedStrings = new java . util . ArrayList < java . lang . String > ( java . util . Arrays . asList ( "" , "" , "" ) ) ; edu . uci . ics . texera . dataflow . dictionarymatcher . Dictionary dictionary = new edu . uci . ics . te...
org . junit . Assert . assertEquals ( expectedStrings , returnedStrings )
testInvalidEntityObject ( ) { try { java . util . Map < java . lang . String , java . lang . Object > puProperties = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; puProperties . put ( "kundera.ddl.auto.prepare" , "create-drop" ) ; emf = javax . persistence . Persistence . createEntityM...
org . junit . Assert . assertNotNull ( iex . getMessage ( ) )
shouldReturnZeroForANullOperationChain ( ) { final uk . gov . gchq . gaffer . store . operation . resolver . DefaultScoreResolver scoreResolver = new uk . gov . gchq . gaffer . store . operation . resolver . DefaultScoreResolver ( ) ; final uk . gov . gchq . gaffer . operation . OperationChain opChain = null ; final ja...
org . junit . Assert . assertEquals ( 0 , result )
testSetPrefixLength ( ) { ipExtendedReachabilityTlv . setPrefixLength ( 10 ) ; result2 = ipExtendedReachabilityTlv . prefixLength ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result2 , org . hamcrest . CoreMatchers . is ( 10 ) )
testSelectWeekOfDay ( ) { org . dashbuilder . displayer . client . AbstractDisplayer displayer = ( ( org . dashbuilder . displayer . client . AbstractDisplayer ) ( presenter . getCommitsByDayOfWeekDisplayer ( ) ) ) ; displayer . filterUpdate ( org . kie . workbench . common . screens . library . client . screens . proj...
org . junit . Assert . assertEquals ( dataSet . getRowCount ( ) , 2 )
testParseSuccess ( ) { queriesString = "type=node&enabled=true&status=established&path=node_id=node01,port_id=port01" ; target = new org . o3project . odenos . core . component . network . flow . query . BasicFlowQuery ( queriesString ) ; "<AssertPlaceHolder>" ; } parse ( ) { if ( ! ( super . parse ( ) ) ) { return fal...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testAnimalDiedBeforeBirth ( ) { org . eclipse . emf . ecore . EObject generic = testFactory . create ( animal ) ; generic . eSet ( birthYear , 2010 ) ; generic . eSet ( deathYear , 2009 ) ; "<AssertPlaceHolder>" ; } validateConstraints ( org . eclipse . emf . ecore . EObject ) { final org . eclipse . core . runtime . I...
org . junit . Assert . assertFalse ( validateConstraints ( generic ) )
testSetInternationalizationFalse ( ) { boolean internationalization = false ; simpleWizard . setInternationalization ( internationalization ) ; "<AssertPlaceHolder>" ; } isInternationalization ( ) { return internationalization ; }
org . junit . Assert . assertEquals ( internationalization , simpleWizard . isInternationalization ( ) )
shouldInjectPipelineCap ( ) { com . couchbase . client . java . query . N1qlParams source = com . couchbase . client . java . query . N1qlParams . build ( ) . pipelineCap ( ( - 1 ) ) ; com . couchbase . client . java . document . json . JsonObject expected = com . couchbase . client . java . document . json . JsonObjec...
org . junit . Assert . assertEquals ( expected , actual )
textNonTxn_from_named_graph_1 ( ) { org . junit . Assume . assumeTrue ( dsFrom ) ; org . apache . jena . query . text . Dataset ds = create ( ) ; org . apache . jena . query . text . TestTextNonTxn . data ( ds , "(<ex:g1><sp><s1><sp>rdfs:label<sp>'foo')" , "(<ex:g1><sp><s2><sp>rdfs:label<sp>'apple')" , "(<ex:g2><sp><s3...
org . junit . Assert . assertEquals ( 1 , x . size ( ) )
persistentGlobalStoreShouldBeDetected ( ) { final org . apache . kafka . streams . processor . internals . ProcessorTopology processorTopology = createGlobalStoreTopology ( org . apache . kafka . streams . state . Stores . persistentKeyValueStore ( "my-store" ) ) ; "<AssertPlaceHolder>" ; } hasPersistentGlobalStore ( )...
org . junit . Assert . assertTrue ( processorTopology . hasPersistentGlobalStore ( ) )
testBigDecimalInvalidDbValue ( ) { com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . BigDecimalNumericTypeTest . LocalBigDecimalNumeric , java . lang . Object > dao = createDao ( com . j256 . ormlite . field . types . BigDecimalNumericTypeTest . LocalBigDecimalNumeric . class , true ) ; com . j2...
org . junit . Assert . assertEquals ( 1 , notDao . create ( notFoo ) )
registerClassesWithSameRoute_class_abstractSuperClass_subclassIsRegistered ( ) { java . util . LinkedHashSet < java . lang . Class < ? > > classes = new java . util . LinkedHashSet ( ) ; classes . add ( com . vaadin . flow . server . startup . RouteRegistryInitializerTest . BaseRouteTarget . class ) ; classes . add ( c...
org . junit . Assert . assertEquals ( com . vaadin . flow . server . startup . RouteRegistryInitializerTest . BaseRouteTarget . class , registry . getNavigationTarget ( "foo" ) . get ( ) )
testGetWarningsWithNoWarnings ( ) { edu . illinois . library . cantaloupe . processor . ImageMagickProcessor . setIMVersion ( ImageMagickProcessor . IMVersion . VERSION_7 ) ; "<AssertPlaceHolder>" ; } getWarnings ( ) { edu . illinois . library . cantaloupe . processor . Processor proc = ( ( edu . illinois . library . c...
org . junit . Assert . assertEquals ( 0 , instance . getWarnings ( ) . size ( ) )
toStringForNullValue ( ) { value = new org . objectstyle . wolips . ruleeditor . model . LhsValue ( createMapForNullRepresentation ( ) ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( "[BindingKey:<sp>bindingName<sp>=<sp>" + ( _bindingName ) ) + ";<sp>bindingMember<sp>=<sp>" ) + ( _bindingMember ) ) + ";<s...
org . junit . Assert . assertThat ( value . toString ( ) , org . hamcrest . CoreMatchers . is ( "null" ) )
deveGerarXMLDeAcordoComOPadraoEstabelecidoBCAliquotaPercentual ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoPISOutrasOperacoes pisOutrasOperacoes = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoPISOutrasOperacoes ( ) ; pisOutrasOpe...
org . junit . Assert . assertEquals ( xmlEsperado , pisOutrasOperacoes . toString ( ) )
loadAllMpOwnerKeysWithinPeriod_before ( ) { setupLoadAllMpOwnerKeysWithinPeriod ( ) ; java . util . List < java . lang . Long > mpOwnerKeys = dao . loadAllMpOwnerKeysWithinPeriod ( org . oscm . billingservice . dao . SharesDataRetrievalServiceBean2IT . TIME_OBJECT_CREATION ) ; "<AssertPlaceHolder>" ; } size ( ) { retur...
org . junit . Assert . assertEquals ( 0 , mpOwnerKeys . size ( ) )
testSetOutput2 ( ) { org . jacoco . core . runtime . AgentOptions options = new org . jacoco . core . runtime . AgentOptions ( ) ; options . setOutput ( AgentOptions . OutputMode . tcpclient ) ; "<AssertPlaceHolder>" ; } getOutput ( ) { final java . lang . String value = options . get ( org . jacoco . core . runtime . ...
org . junit . Assert . assertEquals ( AgentOptions . OutputMode . tcpclient , options . getOutput ( ) )
testMethodPost ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . rxjava2 . Rx2SingleServerAsyncTest . generateURL ( "/post/string" ) ) . request ( ) ; javax . ws . rs . core . R...
org . junit . Assert . assertEquals ( "a" , response . readEntity ( java . lang . String . class ) )
shouldReturnPlainContentTypeIfDefault ( ) { com . navercorp . volleyextensions . volleyer . http . ContentType contentType = com . navercorp . volleyextensions . volleyer . http . ContentType . CONTENT_TYPE_TEXT_PLAIN ; com . navercorp . volleyextensions . volleyer . multipart . Part part = new com . navercorp . volley...
org . junit . Assert . assertThat ( contentType , org . hamcrest . CoreMatchers . is ( returnContentType ) )
testCompareToDiffSigns2 ( ) { byte [ ] aBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; byte [ ] bBytes = new byte [ ] { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 10 , 20 , 30 } ; int aSign = - 1 ; int bSign = 1 ; java . math . BigInteger aNumber = new java . math . BigIntege...
org . junit . Assert . assertEquals ( ( - 1 ) , aNumber . compareTo ( bNumber ) )
testEquals ( ) { java . lang . Object obj = new java . util . ArrayList ( ) ; boolean expResult = false ; boolean result = instance . equals ( obj ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } fi...
org . junit . Assert . assertEquals ( expResult , result )
testConvertWithNoRelations ( ) { java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; org . lnu . is . domain . paper . type . PaperType source = new org . lnu . is . domain . paper . type . PaperType ( ) ; source . setName ( name ) ; source . setAbbrName ( abbrName ) ; org . lnu . is ....
org . junit . Assert . assertEquals ( expected , actual )
testExecute_twoAgentStatus ( ) { net . roboconf . karaf . commands . agent . status . AgentStatusCommand cmd = new net . roboconf . karaf . commands . agent . status . AgentStatusCommand ( ) ; net . roboconf . agent . AgentMessagingInterface am1 = org . mockito . Mockito . mock ( net . roboconf . agent . AgentMessaging...
org . junit . Assert . assertNull ( cmd . execute ( ) )
test_no_schemafile ( ) { try { getValidator ( "sw-config-no-schemafile.xml" ) ; } catch ( java . lang . RuntimeException e ) { boolean exceptionText = e . getMessage ( ) . contains ( "SWITCHYARD017221" ) ; "<AssertPlaceHolder>" ; } } getMessage ( ) { return _message ; }
org . junit . Assert . assertTrue ( exceptionText )
testIsSSLWSIS ( ) { mock . checking ( new org . jmock . Expectations ( ) { { one ( conn ) . getRequest ( ) ; will ( returnValue ( request ) ) ; one ( conn ) . useTrustedHeaders ( ) ; will ( returnValue ( true ) ) ; one ( conn ) . getTrustedHeader ( "$WSSC" ) ; will ( returnValue ( null ) ) ; one ( conn ) . getTrustedHe...
org . junit . Assert . assertTrue ( ssl )
testTcProperties ( ) { com . terracotta . config . Configuration configuration = mock ( com . terracotta . config . Configuration . class ) ; int currentServerIndex = 1 ; org . terracotta . config . TcConfig tcConfig = new org . terracotta . config . TcConfig ( ) ; when ( configuration . getPlatformConfiguration ( ) ) ...
org . junit . Assert . assertThat ( com . tc . properties . TCPropertiesImpl . getProperties ( ) . getProperty ( testKey ) , org . hamcrest . Matchers . is ( testValue ) )
testStripSecretsFromUrl_twoSecretsTwoHits ( ) { java . lang . String input = "&secret1=x&client_secret=x" ; java . lang . String expected = "&secret1=*****&client_secret=*****" ; java . lang . String [ ] secrets = new java . lang . String [ ] { "client_secret" , "secret1" } ; java . lang . String value = com . ibm . ws...
org . junit . Assert . assertEquals ( expected , value )
testGetRootDirTraduzido ( ) { br . com . senacrs . alp . aulas . trabalho12 . Configuracao obj = null ; java . lang . String esperado = null ; java . lang . String obtido = null ; java . lang . String nomeDir = null ; nomeDir = "diretorio" ; esperado = ( Configuracao . PWD ) + nomeDir ; obj = new br . com . senacrs . a...
org . junit . Assert . assertEquals ( esperado , obtido )
testGetOperator ( ) { filterList = new org . apache . gora . filter . FilterList ( org . apache . gora . filter . FilterList . Operator . MUST_PASS_ALL , fList ) ; "<AssertPlaceHolder>" ; } getOperator ( ) { return operator ; }
org . junit . Assert . assertEquals ( Operator . MUST_PASS_ALL , filterList . getOperator ( ) )
testCreateThumbnails_nullCollection ( ) { try { net . coobird . thumbnailator . Thumbnailator . createThumbnails ( null , Rename . PREFIX_DOT_THUMBNAIL , 50 , 50 ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . NullPointerException e ) { "<AssertPlaceHolder>" ; throw e ; } } createThumbnails ( java . util ...
org . junit . Assert . assertEquals ( "Collection<sp>of<sp>Files<sp>is<sp>null." , e . getMessage ( ) )
testGetLastLoginTime ( ) { System . out . println ( "getLastLoginTime" ) ; java . sql . Timestamp expResult = edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getLastLoginTime ( ) ; "<AssertPlaceHolder>" ; } getLastLoginTime ( ) { return this . lastLoginTime ; }
org . junit . Assert . assertEquals ( expResult , edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getLastLoginTime ( ) )
basicProgressHandler ( ) { final int [ ] calls = new int [ ] { 0 } ; org . sqlite . ProgressHandler . setHandler ( conn , 1 , new org . sqlite . ProgressHandler ( ) { @ org . sqlite . Override protected int progress ( ) throws java . sql . SQLException { ( calls [ 0 ] ) ++ ; return 0 ; } } ) ; workWork ( ) ; "<AssertPl...
org . junit . Assert . assertTrue ( ( ( calls [ 0 ] ) > 0 ) )
testNoClientResources ( ) { java . util . List < java . lang . String > resources = store . getClientResources ( "client@jabber.org" ) ; "<AssertPlaceHolder>" ; } size ( ) { return mixers . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , resources . size ( ) )
debieraMostrarListaDeCiudad ( ) { log . debug ( "Debiera<sp>monstrar<sp>Ciudad" ) ; mx . edu . um . mateo . colportor . model . Estado estado = new mx . edu . um . mateo . colportor . model . Estado ( "test3" ) ; currentSession ( ) . save ( estado ) ; for ( int i = 0 ; i < 20 ; i ++ ) { mx . edu . um . mateo . colporto...
org . junit . Assert . assertNotNull ( ciudad )
getConnectionPostLoadSetsReferenceInOutboundConnections ( ) { com . streamreduce . core . model . OutboundConfiguration outboundConfiguration = new com . streamreduce . core . model . OutboundConfiguration . Builder ( ) . credentials ( new com . streamreduce . core . model . ConnectionCredentials ( cloudBundle . getStr...
org . junit . Assert . assertEquals ( loadedFeedConnection , loadedOutboundConfiguration . getOriginatingConnection ( ) )
getPriceModel_priceModel_not_found ( ) { org . mockito . Mockito . doReturn ( "http://localhost:8680/oscm-file-billing/rest/priceModel" ) . when ( properties ) . getConfigProperty ( PriceModelPlugin . PRICEMODEL_URL ) ; org . mockito . Mockito . doReturn ( null ) . when ( restDao ) . getPriceModelData ( org . mockito ....
org . junit . Assert . assertNull ( priceModel )
testGetOrCreateInstants ( ) { long startDateInMillis = dateToMillis ( 2013 , 5 , 4 ) ; long endDateInMillis = dateToMillis ( 2013 , 5 , 7 ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( "startTime" , startDateInMillis ) ; params . put ( "endT...
org . junit . Assert . assertEquals ( 4 , count )
checkBeforeSessionInvocation ( ) { java . util . Map < java . lang . String , java . lang . Object > requestedCapability = new java . util . HashMap ( ) ; requestedCapability . put ( CapabilityType . BROWSER_NAME , BrowserType . SAFARI ) ; requestedCapability . put ( CapabilityType . PLATFORM_NAME , Platform . MAC ) ; ...
org . junit . Assert . assertNotNull ( testSession )
removeExistingNodeParent ( ) { javax . jcr . Session session = getAdminSession ( ) ; session . getRootNode ( ) . addNode ( "parent" ) . addNode ( "new" ) ; session . save ( ) ; javax . jcr . Node n = session . getNode ( "/parent/new" ) ; n . getParent ( ) . remove ( ) ; try { n . getPath ( ) ; org . junit . Assert . fa...
org . junit . Assert . assertEquals ( "/parent/new" , n . getPath ( ) )
testInsertLoad ( ) { org . hibernate . Session session = clientSf . openSession ( ) ; org . hibernate . Transaction tx = session . beginTransaction ( ) ; com . hazelcast . hibernate . entity . DummyEntity e = new com . hazelcast . hibernate . entity . DummyEntity ( ( ( long ) ( 1 ) ) , "dummy:1" , 123456.0 , new java ....
org . junit . Assert . assertEquals ( "dummy:1" , retrieved . getName ( ) )
isMultipleLeftJoinFetch3LevelsWorking ( ) { final com . uaihebert . model . EasyCriteria < com . uaihebert . model . test . Person > easyCriteria = com . uaihebert . uaicriteria . base . element . EasyCriteriaFactory . createQueryCriteria ( getEntityManager ( ) , com . uaihebert . model . test . Person . class ) ; easy...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 0 ) )
testMisconfiguredExternalBlockReader ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( HdfsClientConfigKeys . REPLICA_ACCESSOR_BUILDER_CLASSES_KEY , "org.apache.hadoop.hdfs.NonExistentReplicaAccessorBuilderClass" ) ; conf . setLong ( HdfsClient...
org . junit . Assert . assertArrayEquals ( expected , buf )
testNullToEmptyFloat ( ) { final float [ ] original = new float [ ] { 2.6F , 3.8F } ; "<AssertPlaceHolder>" ; } nullToEmpty ( java . lang . Object [ ] ) { if ( org . apache . commons . lang3 . ArrayUtils . isEmpty ( array ) ) { return org . apache . commons . lang3 . ArrayUtils . EMPTY_OBJECT_ARRAY ; } return array ; }
org . junit . Assert . assertEquals ( original , org . apache . commons . lang3 . ArrayUtils . nullToEmpty ( original ) )
getSecondaryGroupUserIDsWhenWhitespaceResultsReturnsEmptyList ( ) { groups = "<sp>" ; when ( result . getString ( configuration . webappSecondaryGroupGroupIDColumn ) ) . thenReturn ( groups ) ; java . util . List < java . lang . String > secondaryGroups = webGroupDao . getSecondaryGroupUserIDs ( GROUP_ID ) ; "<AssertPl...
org . junit . Assert . assertEquals ( 0 , secondaryGroups . size ( ) )
testIntArrayZero ( ) { final int size = 100 ; final org . hillview . table . columns . IntArrayColumn col = org . hillview . utils . IntArrayGenerator . getMissingIntArray ( "X" , size , 5 ) ; "<AssertPlaceHolder>" ; checkContents ( col ) ; } sizeInRows ( ) { return this . data . length ; }
org . junit . Assert . assertEquals ( col . sizeInRows ( ) , size )
testCamelCaseToWordsOneChar ( ) { java . lang . String result = org . sculptor . generator . util . CamelCaseConverter . camelCaseToWords ( "a" ) ; "<AssertPlaceHolder>" ; } camelCaseToWords ( java . lang . String ) { return org . sculptor . generator . util . CamelCaseConverter . camelCaseToWords ( camelCase , '<sp>' ...
org . junit . Assert . assertEquals ( "a" , result )
multipleHashResultParsing ( ) { doc = com . rosaloves . bitlyj . Utils . classpathXmlIS ( "clicks_2_urls.xml" ) ; java . util . Set < com . rosaloves . bitlyj . UrlClicks > clicks = com . rosaloves . bitlyj . Bitly . clicks ( "bWw49z" , "1YKMfY" ) . apply ( bitly , doc ) ; "<AssertPlaceHolder>" ; } size ( ) { return pa...
org . junit . Assert . assertEquals ( 2 , clicks . size ( ) )
testGetCursorControl_withNoControl ( ) { org . eclipse . swt . widgets . Display_Test . setCursorLocation ( display , 234 , 345 ) ; "<AssertPlaceHolder>" ; } getCursorControl ( ) { checkDevice ( ) ; org . eclipse . swt . widgets . Display . ControlFinder finder = new org . eclipse . swt . widgets . Display . ControlFin...
org . junit . Assert . assertNull ( display . getCursorControl ( ) )
testBufferBackedXLoc ( ) { { final java . lang . String [ ] osds = new java . lang . String [ ] { "someOSD" , "anotherOSD" , "myOSD" } ; final org . xtreemfs . mrc . metadata . BufferBackedStripingPolicy sp = new org . xtreemfs . mrc . metadata . BufferBackedStripingPolicy ( "RAID0" , 1024 , 4 ) ; final int replFlags =...
org . junit . Assert . assertEquals ( Integer . MIN_VALUE , xloc2 . getReplicationFlags ( ) )
testAnyPartitioningErased ( ) { org . apache . flink . api . common . operators . SingleInputSemanticProperties sProp = new org . apache . flink . api . common . operators . SingleInputSemanticProperties ( ) ; org . apache . flink . api . java . functions . SemanticPropUtil . getSemanticPropsSingleFromString ( sProp , ...
org . junit . Assert . assertNull ( filtered )
shouldDetermineIfInlinedCodeFlagIsSet ( ) { final org . pitest . mutationtest . config . ReportOptions actual = parseAddingRequiredArgs ( "--detectInlinedCode" ) ; "<AssertPlaceHolder>" ; } isDetectInlinedCode ( ) { return this . detectInlinedCode ; }
org . junit . Assert . assertTrue ( actual . isDetectInlinedCode ( ) )
test_get_all_policies ( ) { java . util . List < org . ikasan . security . model . Policy > policies = this . xaSecurityService . getAllPolicies ( ) ; "<AssertPlaceHolder>" ; } size ( ) { logger . debug ( "Size!<sp>" ) ; return 15000 ; }
org . junit . Assert . assertTrue ( ( ( policies . size ( ) ) == 100 ) )
testLoadDefaultQueryDefinitions ( ) { java . util . Date today = new java . util . Date ( ) ; org . kie . server . api . KieServerEnvironment . setServerId ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; org . jbpm . services . api . query . QueryService queryService = org . mockito . Mockito . mock ( org . jb...
org . junit . Assert . assertNotNull ( resultQueryBase )
createPRPA201301RequestNullforPRPAIN201306UV02 ( ) { java . lang . String localDeviceId = "1.1" ; gov . hhs . fha . nhinc . transform . subdisc . HL7PRPA201301Transforms transforms = new gov . hhs . fha . nhinc . transform . subdisc . HL7PRPA201301Transforms ( ) ; org . hl7 . v3 . PRPAIN201306UV02 req = null ; "<Assert...
org . junit . Assert . assertNull ( transforms . createPRPA201301 ( req , localDeviceId ) )
testIoNewTherapyRow ( ) { int id = 0 ; try { org . isf . medtype . model . MedicalType medicalType = org . isf . therapy . test . Tests . testMedicalType . setup ( false ) ; org . isf . medicals . model . Medical medical = org . isf . therapy . test . Tests . testMedical . setup ( medicalType , false ) ; org . isf . pa...
org . junit . Assert . assertEquals ( true , false )
testRetainMatchingWithNoPatterns ( ) { java . util . Collection < java . lang . String > values = stringToList ( "A" ) ; ch . qos . logback . core . util . StringCollectionUtil . retainMatching ( values ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object ) { return underlyingList . contains ( o ) ; }
org . junit . Assert . assertTrue ( values . contains ( "A" ) )
testGetFirstOfSingle ( ) { java . util . List < java . lang . String > words = com . google . common . collect . Lists . newArrayList ( firstWord ) ; java . util . concurrent . Future < org . apache . shindig . protocol . RestfulCollection < java . lang . String > > collection = org . apache . shindig . common . util ....
org . junit . Assert . assertEquals ( firstWord , futureWord . get ( ) )
testUpdateDashboard ( ) { try ( com . salesforce . dva . argus . sdk . ArgusService argusService = new com . salesforce . dva . argus . sdk . ArgusService ( getMockedClient ( "/DashboardServiceTest.json" ) ) ) { com . salesforce . dva . argus . sdk . DashboardService dashboardService = argusService . getDashboardServic...
org . junit . Assert . assertEquals ( expected , result )
convertSyncRequestMetaDataTest ( ) { org . kaaproject . kaa . server . sync . platform . AvroEncDec avroEncDec = new org . kaaproject . kaa . server . sync . platform . AvroEncDec ( ) ; java . lang . reflect . Method method = org . kaaproject . kaa . server . sync . platform . AvroEncDec . class . getDeclaredMethod ( o...
org . junit . Assert . assertNull ( method . invoke ( avroEncDec , requestMetaData ) )
setConfiguratorUrl ( ) { org . oscm . domobjects . Product p = new org . oscm . domobjects . Product ( ) ; p . setConfiguratorUrl ( CONF_URL ) ; "<AssertPlaceHolder>" ; } getConfiguratorUrl ( ) { return vo . getConfiguratorUrl ( ) ; }
org . junit . Assert . assertEquals ( CONF_URL , p . getConfiguratorUrl ( ) )
testConditionalAppendWithFalse ( ) { reason . appendOnCondition ( false , "reason<sp>1" ) ; "<AssertPlaceHolder>" ; } getReason ( ) { return isNotVetoing ( ) ? null : reasonBuf . toString ( ) ; }
org . junit . Assert . assertEquals ( null , reason . getReason ( ) )
isConnectedReturnsFalse ( ) { doReturn ( false ) . when ( socket ) . isBound ( ) ; "<AssertPlaceHolder>" ; } isConnected ( ) { return ( ( ( ( ( ( socket ) != null ) && ( socket . isBound ( ) ) ) && ( ! ( socket . isClosed ( ) ) ) ) && ( socket . isConnected ( ) ) ) && ( ! ( socket . isInputShutdown ( ) ) ) ) && ( ! ( s...
org . junit . Assert . assertFalse ( connection . isConnected ( ) )
testNederlandseNationaliteitHuidigeSituatieNull ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0151 . voerRegelUit ( null , bouwNieuweSituatie ( NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return eleme...
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
shouldReturnSingleVoteFromUser ( ) { feedbackService . save ( roomId , 2 , "user-id-one" ) ; int actual = feedbackService . getByRoomIdAndUserId ( roomId , "user-id-one" ) ; "<AssertPlaceHolder>" ; } getByRoomIdAndUserId ( java . lang . String , java . lang . String ) { final de . thm . arsnova . model . Room room = ro...
org . junit . Assert . assertEquals ( 2 , actual )
checkOffsetByCodepointBug ( ) { final java . lang . String s = "abcdefg" ; final java . lang . String ss = s . substring ( 3 , 6 ) ; final int [ ] cps = com . ericsson . otp . erlang . OtpErlangString . stringToCodePoints ( ss ) ; final int [ ] expect = new int [ ] { 100 , 101 , 102 } ; "<AssertPlaceHolder>" ; } toStri...
org . junit . Assert . assertEquals ( java . util . Arrays . toString ( expect ) , java . util . Arrays . toString ( cps ) )
whenWhiteNoMoves_ScoreIsMateInOneWhite ( ) { when ( mock_pos . getOnMove ( ) ) . thenReturn ( Colour . white ) ; when ( mock_mlgen . getMoveList ( ) ) . thenReturn ( input_ml ) ; when ( mock_sg . scoreMate ( 0 , true , Colour . white ) ) . thenReturn ( King . MATERIAL_VALUE ) ; score = classUnderTest . searchPly ( ) ; ...
org . junit . Assert . assertEquals ( King . MATERIAL_VALUE , score )